Fix being unable to select imported objects
This commit is contained in:
@@ -3332,6 +3332,7 @@ class GraphicsObject {
|
|||||||
}
|
}
|
||||||
if (mode == "select") {
|
if (mode == "select") {
|
||||||
for (let item of context.selection) {
|
for (let item of context.selection) {
|
||||||
|
if (!item) continue;
|
||||||
if (item.idx in this.currentFrame.keys) {
|
if (item.idx in this.currentFrame.keys) {
|
||||||
ctx.save();
|
ctx.save();
|
||||||
ctx.strokeStyle = "#00ffff";
|
ctx.strokeStyle = "#00ffff";
|
||||||
@@ -5663,6 +5664,8 @@ function outliner(object = undefined) {
|
|||||||
outliner.collapsed[object.idx] = !outliner.collapsed[object.idx];
|
outliner.collapsed[object.idx] = !outliner.collapsed[object.idx];
|
||||||
} else {
|
} else {
|
||||||
outliner.active = object;
|
outliner.active = object;
|
||||||
|
// Only do selection when this is pointing at the actual file
|
||||||
|
if (outliner.object==root) {
|
||||||
context.objectStack = []
|
context.objectStack = []
|
||||||
let parent = object;
|
let parent = object;
|
||||||
while (true) {
|
while (true) {
|
||||||
@@ -5682,6 +5685,7 @@ function outliner(object = undefined) {
|
|||||||
context.shapeselection = []
|
context.shapeselection = []
|
||||||
actions.select.create()
|
actions.select.create()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
updateOutliner(); // Re-render the outliner
|
updateOutliner(); // Re-render the outliner
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user