fix hover/drop highlight. more left menu tweaks
This commit is contained in:
parent
c0caa7016b
commit
0466d36f4d
4 changed files with 28 additions and 10 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue