parent
78218359b1
commit
0729c852b4
|
@ -482,7 +482,6 @@ void CanvasItem::_enter_canvas() {
|
|||
|
||||
} else {
|
||||
|
||||
|
||||
CanvasItem *parent = get_parent_item();
|
||||
canvas_layer=parent->canvas_layer;
|
||||
VisualServer::get_singleton()->canvas_item_set_parent(canvas_item,parent->get_canvas_item());
|
||||
|
|
|
@ -1585,9 +1585,8 @@ void Viewport::_gui_call_input(Control *p_control,const InputEvent& p_input) {
|
|||
if (!control->is_inside_tree())
|
||||
break;
|
||||
control->emit_signal(SceneStringNames::get_singleton()->input_event,p_input);
|
||||
if (!control->is_inside_tree() || control->is_set_as_toplevel()) {
|
||||
if (!control->is_inside_tree() || control->is_set_as_toplevel())
|
||||
break;
|
||||
}
|
||||
if (gui.key_event_accepted)
|
||||
break;
|
||||
if (control->data.stop_mouse && (p_input.type==InputEvent::MOUSE_BUTTON || p_input.type==InputEvent::MOUSE_MOTION))
|
||||
|
|
Loading…
Reference in New Issue