Expose the new gizmo plugin system to scripting

This commit is contained in:
JFonS 2018-10-29 11:30:28 +01:00
parent 13582354fd
commit 6b15b4f904
11 changed files with 364 additions and 40 deletions

View file

@ -356,5 +356,5 @@ void CSGShapeSpatialGizmoPlugin::redraw(EditorSpatialGizmo *p_gizmo) {
EditorPluginCSG::EditorPluginCSG(EditorNode *p_editor) {
Ref<CSGShapeSpatialGizmoPlugin> gizmo_plugin = Ref<CSGShapeSpatialGizmoPlugin>(memnew(CSGShapeSpatialGizmoPlugin));
SpatialEditor::get_singleton()->register_gizmo_plugin(gizmo_plugin);
SpatialEditor::get_singleton()->add_gizmo_plugin(gizmo_plugin);
}