editor: error when ctrl+clicking on a root's child
This commit is contained in:
parent
ad6916b609
commit
99a2652d09
2 changed files with 11 additions and 5 deletions
|
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## 1.16.7
|
||||
|
||||
- bug fixes
|
||||
- editor: error when ctrl+clicking on a root's child
|
||||
|
||||
## 1.16.6
|
||||
|
||||
|
|
|
|||
|
|
@ -562,12 +562,14 @@ class Editor {
|
|||
|
||||
}
|
||||
|
||||
var parent = this.selectedWidgets[0].parent
|
||||
while (parent !== widgetManager) {
|
||||
if (parent.getProp('lock')) {
|
||||
this.selectedWidgets = [parent]
|
||||
if (this.selectedWidgets.length) {
|
||||
var parent = this.selectedWidgets[0].parent
|
||||
while (parent !== widgetManager) {
|
||||
if (parent.getProp('lock')) {
|
||||
this.selectedWidgets = [parent]
|
||||
}
|
||||
parent = parent.parent
|
||||
}
|
||||
parent = parent.parent
|
||||
}
|
||||
|
||||
if (options.fromLasso && !options.lassoEnd) return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue