Cleaning up object3d invalidate calls

This commit is contained in:
Lars Brubaker 2019-01-28 17:44:00 -08:00
parent 239c431560
commit 6305303047
49 changed files with 90 additions and 92 deletions

View file

@ -71,7 +71,7 @@ namespace MatterHackers.MatterControl.Library
{ DateCreated = new System.DateTime(index++) },
new GeneratorItem(
() => "Text".Localize(),
() => TextObject3D.Create())
() => TextObject3D.Create().Result)
{ DateCreated = new System.DateTime(index++) },
#if DEBUG
new GeneratorItem(

View file

@ -147,7 +147,7 @@ namespace MatterHackers.MatterControl.Library
this.Children.Remove(placeholderItem);
this.Collapse();
this.Invalidate(new InvalidateArgs(this, InvalidateType.Children));
this.Invalidate(InvalidateType.Children);
}));
}