mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 13:11:13 +00:00 
			
		
		
		
	Merge pull request #9462 from Noshyaar/pr2
SceneTab: MMB or double LMB to create new scene
This commit is contained in:
		
						commit
						2036273f94
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		|  | @ -4392,8 +4392,14 @@ void EditorNode::_scene_tab_input(const Ref<InputEvent> &p_input) { | |||
| 	Ref<InputEventMouseButton> mb = p_input; | ||||
| 
 | ||||
| 	if (mb.is_valid()) { | ||||
| 		if (mb->get_button_index() == BUTTON_MIDDLE && mb->is_pressed() && scene_tabs->get_hovered_tab() >= 0) { | ||||
| 			_scene_tab_closed(scene_tabs->get_hovered_tab()); | ||||
| 		if (scene_tabs->get_hovered_tab() >= 0) { | ||||
| 			if (mb->get_button_index() == BUTTON_MIDDLE && mb->is_pressed()) { | ||||
| 				_scene_tab_closed(scene_tabs->get_hovered_tab()); | ||||
| 			} | ||||
| 		} else { | ||||
| 			if ((mb->get_button_index() == BUTTON_LEFT && mb->is_doubleclick()) || (mb->get_button_index() == BUTTON_MIDDLE && mb->is_pressed())) { | ||||
| 				_menu_option_confirm(FILE_NEW_SCENE, true); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rémi Verschelde
						Rémi Verschelde