fix bug with supports not following a part mirror and mirror not triggering a workspace save
This commit is contained in:
parent
0ec472c8f4
commit
995e23bbca
3 changed files with 23 additions and 5 deletions
|
|
@ -294,6 +294,17 @@
|
|||
func.sclear();
|
||||
}
|
||||
});
|
||||
api.event.on("widget.mirror", widget => {
|
||||
if (!isFdmMode) {
|
||||
return;
|
||||
}
|
||||
let ann = API.widgets.annotate(widget.id);
|
||||
let sups = ann.support || [];
|
||||
sups.forEach(sup => {
|
||||
let wsup = widget.sups[sup.id];
|
||||
wsup.box.position.x = wsup.x = sup.x = -sup.x;
|
||||
});
|
||||
});
|
||||
api.event.on("widget.rotate", rot => {
|
||||
if (!isFdmMode) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue