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;
|
return;
|
||||||
}
|
}
|
||||||
if (event && event.target.nodeName === "CANVAS") {
|
if (event && event.target.nodeName === "CANVAS") {
|
||||||
if (selection && selection.object) {
|
if (object && object.object) {
|
||||||
if (selection.object.widget) {
|
if (object.object.widget) {
|
||||||
platform.select(selection.object.widget, event.shiftKey);
|
platform.select(object.object.widget, event.shiftKey);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
platform.deselect();
|
platform.deselect();
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,6 @@
|
||||||
api.event.on("fdm.supports.detect", func.sgen = () => {
|
api.event.on("fdm.supports.detect", func.sgen = () => {
|
||||||
alert = api.show.alert("analyzing part(s)...", 1000);
|
alert = api.show.alert("analyzing part(s)...", 1000);
|
||||||
FDM.support_generate(array => {
|
FDM.support_generate(array => {
|
||||||
console.log({generated_supports: array});
|
|
||||||
api.hide.alert(alert);
|
api.hide.alert(alert);
|
||||||
for (let rec of array) {
|
for (let rec of array) {
|
||||||
let { widget, supports } = rec;
|
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) {
|
if (!isFdmMode) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue