You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fixes snapping and replaces the _draw_canvas by forward_canvas_draw
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user