summaryrefslogtreecommitdiff
path: root/editor/plugins/node_3d_editor_gizmos.h
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-11-15 17:02:20 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-11-15 17:31:53 +0800
commit6c5dc78f59c78657525cd2301a7e945a30835888 (patch)
treece2daa03dc2e6b677c9aef5f99fc55a79469539a /editor/plugins/node_3d_editor_gizmos.h
parent245e6454a03a24bf074eb3715776125842e3b666 (diff)
Make Camera3D gizmo the same aspect ratio as its viewport
Diffstat (limited to 'editor/plugins/node_3d_editor_gizmos.h')
-rw-r--r--editor/plugins/node_3d_editor_gizmos.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/node_3d_editor_gizmos.h b/editor/plugins/node_3d_editor_gizmos.h
index d7e3e03f61..60d44ad787 100644
--- a/editor/plugins/node_3d_editor_gizmos.h
+++ b/editor/plugins/node_3d_editor_gizmos.h
@@ -264,6 +264,9 @@ public:
class Camera3DGizmoPlugin : public EditorNode3DGizmoPlugin {
GDCLASS(Camera3DGizmoPlugin, EditorNode3DGizmoPlugin);
+private:
+ static Size2i _get_viewport_size(Camera3D *p_camera);
+
public:
bool has_gizmo(Node3D *p_spatial) override;
String get_gizmo_name() const override;