diff options
| author | Gilles Roudiere | 2017-10-15 22:33:25 +0200 |
|---|---|---|
| committer | Gilles Roudiere | 2017-10-18 00:01:59 +0200 |
| commit | fc02605b497727913922d873eb7bd36d73aa00a9 (patch) | |
| tree | 48752083c8ed68c7a0b9a891c7400c298729c69e /editor/editor_node.cpp | |
| parent | 6e960c7d6bbf7481bae41ab0ebb39bc75619272a (diff) | |
| download | godot-fc02605b497727913922d873eb7bd36d73aa00a9.tar.gz godot-fc02605b497727913922d873eb7bd36d73aa00a9.tar.zst godot-fc02605b497727913922d873eb7bd36d73aa00a9.zip | |
Fixes snapping and replaces the _draw_canvas by forward_canvas_draw
Diffstat (limited to 'editor/editor_node.cpp')
| -rw-r--r-- | editor/editor_node.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index aca2f5913..18f47852b 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -5691,12 +5691,12 @@ void EditorPluginList::edit(Object *p_object) { } } -bool EditorPluginList::forward_gui_input(const Transform2D &p_canvas_xform, const Ref<InputEvent> &p_event) { +bool EditorPluginList::forward_gui_input(const Ref<InputEvent> &p_event) { bool discard = false; for (int i = 0; i < plugins_list.size(); i++) { - if (plugins_list[i]->forward_canvas_gui_input(p_canvas_xform, p_event)) { + if (plugins_list[i]->forward_canvas_gui_input(p_event)) { discard = true; } } @@ -5720,10 +5720,10 @@ bool EditorPluginList::forward_spatial_gui_input(Camera *p_camera, const Ref<Inp return discard; } -void EditorPluginList::forward_draw_over_canvas(const Transform2D &p_canvas_xform, Control *p_canvas) { +void EditorPluginList::forward_draw_over_canvas(Control *p_canvas) { for (int i = 0; i < plugins_list.size(); i++) { - plugins_list[i]->forward_draw_over_canvas(p_canvas_xform, p_canvas); + plugins_list[i]->forward_draw_over_canvas(p_canvas); } } |
