fix hover/drop highlight. more left menu tweaks

This commit is contained in:
Stewart Allen 2022-01-14 23:30:06 -05:00
commit 0466d36f4d
4 changed files with 28 additions and 10 deletions

View file

@ -286,8 +286,8 @@ let file = {
// return selection if models are invalid. can happen when called from
// even bound to a button which delivers a PointEvent argument
function fallback(models) {
return Array.isArray(models) ? models : selection.models();
function fallback(models, strict) {
return Array.isArray(models) ? models : selection.models(strict);
}
let tool = {
@ -307,6 +307,10 @@ let tool = {
});
},
split(models) {
models = fallback(models);
},
duplicate() {
for (let m of selection.models()) {
m.duplicate();