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