Force invalidate after load

This commit is contained in:
John Lewin 2017-07-19 07:53:05 -07:00
parent b18dca42f9
commit 1acc55bbc8
2 changed files with 5 additions and 2 deletions

View file

@ -102,6 +102,9 @@ namespace MatterHackers.MatterControl
sceneItem.Mesh = loadedItem.Mesh;
sceneItem.Children = loadedItem.Children;
sceneItem.Matrix *= Matrix4X4.CreateTranslation(-aabb.Center.x, -aabb.Center.y, -aabb.minXYZ.z);
// Notification should force invalidate and redraw
progressReporter(1, "");
}
})
};

View file

@ -86,12 +86,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
if (progress0To1 == 1)
{
view3DWidget?.PartHasBeenChanged();
if (view3DWidget != null)
{
view3DWidget.AfterDraw -= View3DWidget_AfterDraw;
}
view3DWidget = null;
}
}
}