mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
parent
d6869d6260
commit
670d07ca0d
1 changed files with 6 additions and 4 deletions
|
|
@ -1459,10 +1459,12 @@ void CanvasItemEditor::_viewport_input_event(const InputEvent &p_event) {
|
|||
while ((n && n != scene && n->get_owner() != scene) || (n && !n->is_type("CanvasItem"))) {
|
||||
n = n->get_parent();
|
||||
};
|
||||
c = n->cast_to<CanvasItem>();
|
||||
#if 0
|
||||
if ( b.pressed ) box_selection_start( click );
|
||||
#endif
|
||||
|
||||
if (n) {
|
||||
c = n->cast_to<CanvasItem>();
|
||||
} else {
|
||||
c = NULL;
|
||||
}
|
||||
|
||||
additive_selection = b.mod.shift;
|
||||
if (!_select(c, click, additive_selection))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue