diff options
author | Micky <micheledevita2@gmail.com> | 2022-09-08 18:38:33 +0200 |
---|---|---|
committer | Micky <micheledevita2@gmail.com> | 2022-10-04 16:27:29 +0200 |
commit | ae5771e1b1ccf673f90aba81aa4572a710408488 (patch) | |
tree | 27e56a862ec10ca8f75dfda89028b59cc0b635c9 /modules/gridmap/editor | |
parent | e5aa5eb8067fada41ad8ecb5027a7917d6d5084c (diff) |
Rename remaining "Spatial" in Plugins to "Node3D"
For EditorNode3DGizmo:
- `get_spatial_node` -> `get_node_3d`
- `set_spatial_node` -> `set_node_3d`
For EditorPlugin:
- `add_spatial_gizmo_plugin` -> `add_node_3d_gizmo_plugin`
- `remove_spatial_gizmo_plugin` -> `remove_node_3d_gizmo_plugin`
Also renames some internal methods for consistency (`forward_3d_draw_over_viewport` & `forward_3d_force_draw_over_viewport` ...). Basically, Spatial has been completely eradicated.
Diffstat (limited to 'modules/gridmap/editor')
-rw-r--r-- | modules/gridmap/editor/grid_map_editor_plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gridmap/editor/grid_map_editor_plugin.h b/modules/gridmap/editor/grid_map_editor_plugin.h index a64dc4a80b..6fd38d9445 100644 --- a/modules/gridmap/editor/grid_map_editor_plugin.h +++ b/modules/gridmap/editor/grid_map_editor_plugin.h @@ -241,7 +241,7 @@ protected: void _notification(int p_what); public: - virtual EditorPlugin::AfterGUIInput forward_spatial_gui_input(Camera3D *p_camera, const Ref<InputEvent> &p_event) override { return grid_map_editor->forward_spatial_input_event(p_camera, p_event); } + virtual EditorPlugin::AfterGUIInput forward_3d_gui_input(Camera3D *p_camera, const Ref<InputEvent> &p_event) override { return grid_map_editor->forward_spatial_input_event(p_camera, p_event); } virtual String get_name() const override { return "GridMap"; } bool has_main_screen() const override { return false; } virtual void edit(Object *p_object) override; |