Better expose reusable components
- Move ActiveView3D reference to ApplicationController - Use ActivewView3D reference rather than ChildrenRecursive search - Reuse EditPrinter button on action bar to get more tests passing - Move IsContentFileType helper to LibraryConfig - Make PlatingHelpers operate on IEnumerable<IObject3D> versus Scene - Pass Scene.Children rather than Scene - When plating multiple items, pass the updated IEnumerable context
This commit is contained in:
parent
955373f4de
commit
55e217641a
15 changed files with 72 additions and 68 deletions
|
|
@ -1970,7 +1970,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
Scene.ModifyChildren(children => children.Add(contentResult.Object3D));
|
||||
|
||||
PlatingHelper.MoveToOpenPosition(contentResult.Object3D, this.Scene);
|
||||
PlatingHelper.MoveToOpenPosition(contentResult.Object3D, this.Scene.Children);
|
||||
|
||||
// TODO: There should be a batch insert so you can undo large 'add to scene' operations in one go
|
||||
//this.InsertNewItem(tempScene);
|
||||
|
|
@ -2531,7 +2531,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
if (renderTypeCheckBox.Checked)
|
||||
{
|
||||
// TODO: Determine if Scene is available in scope
|
||||
var scene = MatterControlApplication.Instance.ActiveView3DWidget.Scene;
|
||||
var scene = this.Scene;
|
||||
|
||||
meshViewerWidget.RenderType = RenderTypes.Overhang;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue