|
@@ -757,25 +757,13 @@ class Model extends FileView {
|
|
});
|
|
});
|
|
|
|
|
|
var toolsDefs : Array<hide.comp.Toolbar.ToolDef> = [];
|
|
var toolsDefs : Array<hide.comp.Toolbar.ToolDef> = [];
|
|
- toolsDefs.push({id: "iconVisibility", title : "Toggle 3d icons visibility", icon : "image", type : Toggle((v) -> { hide.Ide.inst.show3DIcons = v; }), defaultValue: true });
|
|
|
|
- toolsDefs.push({id: "iconVisibility-menu", title : "", icon: "", type : Popup((e) -> new hide.comp.SceneEditor.IconVisibilityPopup(null, e, sceneEditor))});
|
|
|
|
- tools.makeToolbar(toolsDefs);
|
|
|
|
|
|
|
|
- tools.addToggle("wireframeToggle", "connectdevelop", "Wireframe",(b) -> {
|
|
|
|
- sceneEditor.setWireframe(b);
|
|
|
|
- });
|
|
|
|
- displayJoints = tools.addToggle("jointsToggle", "connectdevelop", "Joints",(b) -> {
|
|
|
|
- sceneEditor.setJoints(b, selectedJoint);
|
|
|
|
- });
|
|
|
|
|
|
+ toolsDefs.push({id: "showViewportOverlays", title : "Viewport Overlays", icon : "eye", type : Toggle((v) -> { sceneEditor.updateViewportOverlays(); }) });
|
|
|
|
+ toolsDefs.push({id: "viewportoverlays-menu", title : "", icon: "", type : Popup((e) -> new hide.comp.SceneEditor.ViewportOverlaysPopup(null, e, sceneEditor))});
|
|
|
|
|
|
- tools.addToggle("show-outline","square-o", "Show selection Outline",(b) -> {
|
|
|
|
- highlightSelection = b;
|
|
|
|
- refreshSelectionHighlight(lastSelectedObject);
|
|
|
|
- }, highlightSelection);
|
|
|
|
-
|
|
|
|
- tools.addColor("Background color", function(v) {
|
|
|
|
- scene.engine.backgroundColor = v;
|
|
|
|
- }, scene.engine.backgroundColor);
|
|
|
|
|
|
+ //toolsDefs.push({id: "iconVisibility", title : "Toggle 3d icons visibility", icon : "image", type : Toggle((v) -> { hide.Ide.inst.show3DIcons = v; }), defaultValue: true });
|
|
|
|
+ //toolsDefs.push({id: "iconVisibility-menu", title : "", icon: "", type : Popup((e) -> new hide.comp.SceneEditor.IconVisibilityPopup(null, e, sceneEditor))});
|
|
|
|
+ tools.makeToolbar(toolsDefs);
|
|
|
|
|
|
tools.addSeparator();
|
|
tools.addSeparator();
|
|
|
|
|
|
@@ -813,9 +801,6 @@ class Model extends FileView {
|
|
sceneEditor.onResize = buildTimeline;
|
|
sceneEditor.onResize = buildTimeline;
|
|
setAnimation(null);
|
|
setAnimation(null);
|
|
|
|
|
|
- if ( displayJoints.isDown() )
|
|
|
|
- sceneEditor.setJoints(true, null);
|
|
|
|
-
|
|
|
|
// Adapt initial camera position to model
|
|
// Adapt initial camera position to model
|
|
var camSettings = @:privateAccess sceneEditor.view.getDisplayState("Camera");
|
|
var camSettings = @:privateAccess sceneEditor.view.getDisplayState("Camera");
|
|
var isGlobalSettings = Ide.inst.currentConfig.get("sceneeditor.camera.isglobalsettings", false);
|
|
var isGlobalSettings = Ide.inst.currentConfig.get("sceneeditor.camera.isglobalsettings", false);
|