fixed if last click is null, shift click crashed issue

This commit is contained in:
joey 2020-03-09 12:57:27 -04:00
parent 69beb7ae40
commit f82fd5f519

View file

@ -1064,7 +1064,7 @@ Logic.registerPanel(P_CONTAINERS_EDIT, {
const currentSelectedIdentity = Logic.currentSelectedIdentities(); const currentSelectedIdentity = Logic.currentSelectedIdentities();
const index = currentSelectedIdentity.indexOf(identity); const index = currentSelectedIdentity.indexOf(identity);
if (this.shiftOn === 0) { if (!this.lastSelected || this.shiftOn === 0) {
this.lastSelected = identity; this.lastSelected = identity;
} }