mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	
							parent
							
								
									bbdb6cf16e
								
							
						
					
					
						commit
						ae788125a0
					
				
					 2 changed files with 11 additions and 0 deletions
				
			
		|  | @ -2081,6 +2081,15 @@ void SpatialEditorViewport::set_message(String p_message, float p_time) { | |||
| 	message_time = p_time; | ||||
| } | ||||
| 
 | ||||
| void SpatialEditorPlugin::edited_scene_changed() { | ||||
| 	for (int i = 0; i < SpatialEditor::VIEWPORTS_COUNT; i++) { | ||||
| 		SpatialEditorViewport *viewport = SpatialEditor::get_singleton()->get_editor_viewport(i); | ||||
| 		if (viewport->is_visible()) { | ||||
| 			viewport->notification(Control::NOTIFICATION_VISIBILITY_CHANGED); | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| void SpatialEditorViewport::_notification(int p_what) { | ||||
| 
 | ||||
| 	if (p_what == NOTIFICATION_VISIBILITY_CHANGED) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guilherme Felipe
						Guilherme Felipe