Skip to content

Commit 1b6af3a

Browse files
committed
Fix shift clicking on Add Sun/Environment to Scene buttons
1 parent b6223c0 commit 1b6af3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/plugins/node_3d_editor_plugin.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7847,6 +7847,9 @@ void Node3DEditor::_sun_environ_settings_pressed() {
78477847
sun_environ_popup->set_position(pos - Vector2(sun_environ_popup->get_contents_minimum_size().width / 2, 0));
78487848
sun_environ_popup->reset_size();
78497849
sun_environ_popup->popup();
7850+
// Grabbing the focus is required for Shift modifier checking to be functional
7851+
// (when the Add sun/environment buttons are pressed).
7852+
sun_environ_popup->grab_focus();
78507853
}
78517854

78527855
void Node3DEditor::_add_sun_to_scene(bool p_already_added_environment) {

0 commit comments

Comments
 (0)