You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Attempt to resolve #4673
This commit is contained in:
@@ -1390,7 +1390,12 @@ void CanvasItemEditor::_viewport_gui_input(const Ref<InputEvent> &p_event) {
|
|||||||
while ((n && n != scene && n->get_owner() != scene) || (n && !n->is_class("CanvasItem"))) {
|
while ((n && n != scene && n->get_owner() != scene) || (n && !n->is_class("CanvasItem"))) {
|
||||||
n = n->get_parent();
|
n = n->get_parent();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (n) {
|
||||||
c = n->cast_to<CanvasItem>();
|
c = n->cast_to<CanvasItem>();
|
||||||
|
} else {
|
||||||
|
c = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// Select the item
|
// Select the item
|
||||||
additive_selection = b->get_shift();
|
additive_selection = b->get_shift();
|
||||||
|
|||||||
Reference in New Issue
Block a user