Added an alternative forward_spatial_gui_input to the world editor, so the plugin also works with my godot fork / TokageItLab's skeleton editor changes.

This commit is contained in:
Relintai 2021-09-23 23:10:48 +02:00
parent 86de26c2c7
commit ae53ad5001

View File

@ -92,6 +92,7 @@ protected:
public: public:
virtual bool forward_spatial_gui_input(Camera *p_camera, const Ref<InputEvent> &p_event) { return voxel_world_editor->forward_spatial_input_event(p_camera, p_event); } virtual bool forward_spatial_gui_input(Camera *p_camera, const Ref<InputEvent> &p_event) { return voxel_world_editor->forward_spatial_input_event(p_camera, p_event); }
virtual bool forward_spatial_gui_input(int p_index, Camera *p_camera, const Ref<InputEvent> &p_event) { return voxel_world_editor->forward_spatial_input_event(p_camera, p_event); }
virtual String get_name() const { return "TerraWorldEditor"; } virtual String get_name() const { return "TerraWorldEditor"; }
bool has_main_screen() const { return false; } bool has_main_screen() const { return false; }
virtual void edit(Object *p_object); virtual void edit(Object *p_object);