mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Fixes scene instances not displaying bounds when selected
When selecting instances of a scene file, it doesn't display the bounding box which makes it difficult to visually see that it is selected.
This commit is contained in:
		
							parent
							
								
									4da5649520
								
							
						
					
					
						commit
						10d0bc920b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2172,7 +2172,7 @@ void SpatialEditorViewport::_notification(int p_what) { | |||
| 
 | ||||
| 			VisualInstance *vi = Object::cast_to<VisualInstance>(sp); | ||||
| 
 | ||||
| 			se->aabb = vi ? vi->get_aabb() : AABB(Vector3(-0.2, -0.2, -0.2), Vector3(0.4, 0.4, 0.4)); | ||||
| 			se->aabb = vi ? vi->get_aabb() : _calculate_spatial_bounds(sp, AABB(Vector3(-0.2, -0.2, -0.2), Vector3(0.4, 0.4, 0.4))); | ||||
| 
 | ||||
| 			Transform t = sp->get_global_gizmo_transform(); | ||||
| 			t.translate(se->aabb.position); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Emmanuel Barroga
						Emmanuel Barroga