You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Revive PathEditorPlugin.
Adapted the plugin to recent changes in input classes and pool arrays. Fixed an out-of-bounds bug in the process. Doesn't display anything for a single point (existing issue).
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "editor/spatial_editor_gizmos.h"
|
||||
#include "scene/3d/path.h"
|
||||
#if 0
|
||||
|
||||
class PathSpatialGizmo : public EditorSpatialGizmo {
|
||||
|
||||
GDCLASS(PathSpatialGizmo,EditorSpatialGizmo);
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
static PathEditorPlugin* singleton;
|
||||
Ref<SpatialMaterial> path_material;
|
||||
Ref<SpatialMaterial> path_thin_material;
|
||||
virtual bool forward_spatial_gui_input(Camera* p_camera,const InputEvent& p_event);
|
||||
virtual bool forward_spatial_gui_input(Camera* p_camera, const Ref<InputEvent> &p_event);
|
||||
|
||||
//virtual bool forward_gui_input(const InputEvent& p_event) { return collision_polygon_editor->forward_gui_input(p_event); }
|
||||
virtual Ref<SpatialEditorGizmo> create_spatial_gizmo(Spatial* p_spatial);
|
||||
@@ -96,5 +96,4 @@ public:
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // PATH_EDITOR_PLUGIN_H
|
||||
|
||||
Reference in New Issue
Block a user