fix clear workspace when not in arrange mode
This commit is contained in:
parent
3816f7b51a
commit
520f3ac35e
1 changed files with 5 additions and 1 deletions
|
|
@ -2518,7 +2518,11 @@
|
||||||
// context menu
|
// context menu
|
||||||
$('context-export-stl').onclick = () => { objectsExport() };
|
$('context-export-stl').onclick = () => { objectsExport() };
|
||||||
$('context-export-workspace').onclick = () => { profileExport(true) };
|
$('context-export-workspace').onclick = () => { profileExport(true) };
|
||||||
$('context-clear-workspace').onclick = () => { API.platform.clear(); UI.context.onmouseleave() };
|
$('context-clear-workspace').onclick = () => {
|
||||||
|
API.view.set(VIEWS.ARRANGE);
|
||||||
|
API.platform.clear();
|
||||||
|
UI.context.onmouseleave();
|
||||||
|
};
|
||||||
$('context-duplicate').onclick = duplicateSelection;
|
$('context-duplicate').onclick = duplicateSelection;
|
||||||
$('context-mirror').onclick = mirrorSelection;
|
$('context-mirror').onclick = mirrorSelection;
|
||||||
$('context-layflat').onclick = layFlat;
|
$('context-layflat').onclick = layFlat;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue