Browse Source

added get_camera_method to spatial editor plugin viewport

amend

added get_camera_method to spatial editor plugin viewport
paul gruenbacher 7 years ago
parent
commit
8c14cd5b69
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/plugins/spatial_editor_plugin.h

+ 1 - 1
editor/plugins/spatial_editor_plugin.h

@@ -406,6 +406,7 @@ public:
 			AcceptDialog *p_accept);
 
 	Viewport *get_viewport_node() { return viewport; }
+	Camera *get_camera() { return camera; } // return the default camera object.
 
 	SpatialEditorViewport(SpatialEditor *p_spatial_editor, EditorNode *p_editor, int p_index);
 };
@@ -710,7 +711,6 @@ public:
 
 	void register_gizmo_plugin(Ref<EditorSpatialGizmoPlugin> ref);
 
-	Camera *get_camera() { return NULL; }
 	void edit(Spatial *p_spatial);
 	void clear();