1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Make Camera3D gizmo the same aspect ratio as its viewport

This commit is contained in:
Haoyu Qiu
2022-11-15 17:02:20 +08:00
parent 245e6454a0
commit 6c5dc78f59
4 changed files with 64 additions and 20 deletions

View File

@@ -7248,6 +7248,8 @@ void Node3DEditor::_notification(int p_what) {
sun_state->set_custom_minimum_size(sun_vb->get_combined_minimum_size());
environ_state->set_custom_minimum_size(environ_vb->get_combined_minimum_size());
EditorNode::get_singleton()->connect("project_settings_changed", callable_mp(this, &Node3DEditor::update_all_gizmos).bind(Variant()));
} break;
case NOTIFICATION_ENTER_TREE: {