mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Extended limits in z for camera target movements - Fix of #1589
This commit is contained in:
		
							parent
							
								
									f013972d8b
								
							
						
					
					
						commit
						153c6e7f68
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -3979,6 +3979,12 @@ BoundingBoxf3 GLCanvas3D::scene_bounding_box() const | |||
| { | ||||
|     BoundingBoxf3 bb = volumes_bounding_box(); | ||||
|     bb.merge(m_bed.get_bounding_box()); | ||||
|     if (m_config != nullptr) | ||||
|     { | ||||
|         double h = m_config->opt_float("max_print_height"); | ||||
|         bb.min(2) = std::min(bb.min(2), -h); | ||||
|         bb.max(2) = std::max(bb.max(2), h); | ||||
|     } | ||||
|     return bb; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri