mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 18:36:30 +01:00
fix selection
This commit is contained in:
parent
7bb3c099b6
commit
5dc1300e57
1 changed files with 4 additions and 8 deletions
|
|
@ -6,10 +6,6 @@ TCAD.UI = function(app) {
|
|||
var ui = this;
|
||||
var gui = this.dat;
|
||||
|
||||
app.bus.subscribe('selection', function (polyFace) {
|
||||
ui.setSolid(polyFace.solid)
|
||||
});
|
||||
|
||||
var actionsF = gui.addFolder('Add Object');
|
||||
var actions = new TCAD.UI.Actions(this);
|
||||
actionsF.add(actions.tools, 'extrude');
|
||||
|
|
@ -37,13 +33,13 @@ TCAD.UI.prototype.setSolid = function(solid) {
|
|||
};
|
||||
|
||||
TCAD.UI.Actions = function(scope) {
|
||||
|
||||
|
||||
this.tools = {
|
||||
|
||||
extrude : function() {
|
||||
scope.app.extrude();
|
||||
},
|
||||
|
||||
|
||||
cut : function() {
|
||||
scope.app.cut();
|
||||
},
|
||||
|
|
@ -51,11 +47,11 @@ TCAD.UI.Actions = function(scope) {
|
|||
edit : function() {
|
||||
scope.app.sketchFace();
|
||||
},
|
||||
|
||||
|
||||
save : function() {
|
||||
scope.app.save();
|
||||
},
|
||||
|
||||
|
||||
refreshSketches : function() {
|
||||
scope.app.refreshSketches();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue