fix object selection
This commit is contained in:
parent
488ff820ed
commit
3a3e9fe1bf
2 changed files with 5 additions and 5 deletions
|
|
@ -2071,9 +2071,9 @@
|
|||
return;
|
||||
}
|
||||
if (event && event.target.nodeName === "CANVAS") {
|
||||
if (selection && selection.object) {
|
||||
if (selection.object.widget) {
|
||||
platform.select(selection.object.widget, event.shiftKey);
|
||||
if (object && object.object) {
|
||||
if (object.object.widget) {
|
||||
platform.select(object.object.widget, event.shiftKey);
|
||||
}
|
||||
} else {
|
||||
platform.deselect();
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@
|
|||
api.event.on("fdm.supports.detect", func.sgen = () => {
|
||||
alert = api.show.alert("analyzing part(s)...", 1000);
|
||||
FDM.support_generate(array => {
|
||||
console.log({generated_supports: array});
|
||||
api.hide.alert(alert);
|
||||
for (let rec of array) {
|
||||
let { widget, supports } = rec;
|
||||
|
|
@ -132,7 +131,8 @@
|
|||
});
|
||||
}
|
||||
});
|
||||
api.event.on("mouse.hover.up", int => {
|
||||
api.event.on("mouse.hover.up", on => {
|
||||
let { object, event } = on;
|
||||
if (!isFdmMode) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue