adding materials
This commit is contained in:
parent
cfb386cd04
commit
21955f625a
12 changed files with 293 additions and 2 deletions
|
|
@ -1283,14 +1283,20 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
foreach (var ctrl in scene.Descendants())
|
||||
{
|
||||
if (ctrl is ICustomEditorDraw customEditorDraw1 && customEditorDraw1.DoEditorDraw(ctrl == selectedItem))
|
||||
{
|
||||
if (ctrl is IEditorDraw editorDraw2)
|
||||
{
|
||||
aabbs.Add(editorDraw2.GetEditorWorldspaceAABB(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var ctrl in drawables)
|
||||
{
|
||||
if (ctrl.Enabled)
|
||||
{
|
||||
aabbs.Add(ctrl.GetWorldspaceAABB());
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var obj in scene.Children)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue