mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Fix shift clicking on Add Sun/Environment to Scene buttons
This commit is contained in:
		
							parent
							
								
									b6223c0df0
								
							
						
					
					
						commit
						1b6af3acd3
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -7847,6 +7847,9 @@ void Node3DEditor::_sun_environ_settings_pressed() { | ||||||
| 	sun_environ_popup->set_position(pos - Vector2(sun_environ_popup->get_contents_minimum_size().width / 2, 0)); | 	sun_environ_popup->set_position(pos - Vector2(sun_environ_popup->get_contents_minimum_size().width / 2, 0)); | ||||||
| 	sun_environ_popup->reset_size(); | 	sun_environ_popup->reset_size(); | ||||||
| 	sun_environ_popup->popup(); | 	sun_environ_popup->popup(); | ||||||
|  | 	// Grabbing the focus is required for Shift modifier checking to be functional
 | ||||||
|  | 	// (when the Add sun/environment buttons are pressed).
 | ||||||
|  | 	sun_environ_popup->grab_focus(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void Node3DEditor::_add_sun_to_scene(bool p_already_added_environment) { | void Node3DEditor::_add_sun_to_scene(bool p_already_added_environment) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Giganzo
						Giganzo