Force invalidate after load
This commit is contained in:
parent
b18dca42f9
commit
1acc55bbc8
2 changed files with 5 additions and 2 deletions
|
|
@ -102,6 +102,9 @@ namespace MatterHackers.MatterControl
|
||||||
sceneItem.Mesh = loadedItem.Mesh;
|
sceneItem.Mesh = loadedItem.Mesh;
|
||||||
sceneItem.Children = loadedItem.Children;
|
sceneItem.Children = loadedItem.Children;
|
||||||
sceneItem.Matrix *= Matrix4X4.CreateTranslation(-aabb.Center.x, -aabb.Center.y, -aabb.minXYZ.z);
|
sceneItem.Matrix *= Matrix4X4.CreateTranslation(-aabb.Center.x, -aabb.Center.y, -aabb.minXYZ.z);
|
||||||
|
|
||||||
|
// Notification should force invalidate and redraw
|
||||||
|
progressReporter(1, "");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -86,12 +86,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
||||||
|
|
||||||
if (progress0To1 == 1)
|
if (progress0To1 == 1)
|
||||||
{
|
{
|
||||||
|
view3DWidget?.PartHasBeenChanged();
|
||||||
|
|
||||||
if (view3DWidget != null)
|
if (view3DWidget != null)
|
||||||
{
|
{
|
||||||
view3DWidget.AfterDraw -= View3DWidget_AfterDraw;
|
view3DWidget.AfterDraw -= View3DWidget_AfterDraw;
|
||||||
}
|
}
|
||||||
|
|
||||||
view3DWidget = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue