Remove ModifyChildren from scene
This commit is contained in:
parent
d1f9c04613
commit
3cba62e3c2
12 changed files with 51 additions and 56 deletions
|
|
@ -82,11 +82,11 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
// Drag operation has finished, we need to perform the collapse
|
||||
var loadedItems = this.Children;
|
||||
|
||||
// Collapse our contents into the root of the scen
|
||||
// Collapse our contents into the root of the scene
|
||||
// of the scene when it loses focus
|
||||
scene.ModifyChildren(children =>
|
||||
scene.Children.Modify(list =>
|
||||
{
|
||||
this.CollapseInto(children, Object3DTypes.Any);
|
||||
this.CollapseInto(list, Object3DTypes.Any);
|
||||
});
|
||||
|
||||
if (scene.SelectedItem == this
|
||||
|
|
|
|||
|
|
@ -306,9 +306,9 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
if (result.Object3D != null && ApplicationController.Instance.DragDropData.View3DWidget != null)
|
||||
{
|
||||
var scene = ApplicationController.Instance.DragDropData.View3DWidget.InteractionLayer.Scene;
|
||||
scene.ModifyChildren(children =>
|
||||
scene.Children.Modify(list =>
|
||||
{
|
||||
children.Add(result.Object3D);
|
||||
list.Add(result.Object3D);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -567,9 +567,9 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
private static void AddToPlate(IEnumerable<ILibraryItem> selectedLibraryItems)
|
||||
{
|
||||
var scene = ApplicationController.Instance.DragDropData.Scene;
|
||||
scene.ModifyChildren(children =>
|
||||
scene.Children.Modify(list =>
|
||||
{
|
||||
children.Add(
|
||||
list.Add(
|
||||
new InsertionGroup(
|
||||
selectedLibraryItems,
|
||||
scene,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue