mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fixed integration tests.
This commit is contained in:
		
							parent
							
								
									3e0a06aa0e
								
							
						
					
					
						commit
						86e6f8bf33
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		|  | @ -34,6 +34,7 @@ void Print::clear() | |||
|     for (PrintRegion *region : m_regions) | ||||
|         delete region; | ||||
|     m_regions.clear(); | ||||
|     m_model.clear_objects(); | ||||
| } | ||||
| 
 | ||||
| // Only used by the Perl test cases.
 | ||||
|  | @ -374,6 +375,9 @@ static PrintRegionConfig region_config_from_model_volume(const PrintRegionConfig | |||
| void Print::add_model_object(ModelObject* model_object, int idx) | ||||
| { | ||||
| 	tbb::mutex::scoped_lock lock(this->state_mutex()); | ||||
|     // Add a copy of this ModelObject to this Print.
 | ||||
|     m_model.objects.emplace_back(ModelObject::new_copy(*model_object)); | ||||
|     m_model.objects.back()->set_model(&m_model); | ||||
|     // Initialize a new print object and store it at the given position.
 | ||||
|     PrintObject *object = new PrintObject(this, model_object); | ||||
|     if (idx != -1) { | ||||
|  |  | |||
|  | @ -76,9 +76,10 @@ void SLAPrint::clear() | |||
|     tbb::mutex::scoped_lock lock(this->state_mutex()); | ||||
|     // The following call should stop background processing if it is running.
 | ||||
|     this->invalidate_all_steps(); | ||||
| 
 | ||||
|     for (SLAPrintObject *object : m_objects) delete object; | ||||
|     for (SLAPrintObject *object : m_objects) | ||||
|         delete object; | ||||
|     m_objects.clear(); | ||||
|     m_model.clear_objects(); | ||||
| } | ||||
| 
 | ||||
| // Transformation without rotation around Z and without a shift by X and Y.
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv