Fix indentation issues in last commits

Ping @reduz.
This commit is contained in:
Rémi Verschelde 2016-06-07 07:39:40 +02:00
parent 78218359b1
commit 0729c852b4
4 changed files with 30 additions and 32 deletions

View File

@ -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());

View File

@ -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))