mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	ENH: fix compiling issue for github branch
Lighting infill has not been enabled on this branch. Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: Ic3c8d1f57fd36e73eaec190a43bf9f5868667d9b
This commit is contained in:
		
							parent
							
								
									b8d9a2fdf3
								
							
						
					
					
						commit
						bea9a0854e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -758,7 +758,7 @@ bool PrintObject::invalidate_state_by_config_options( | |||
|             steps.emplace_back(posInfill); | ||||
|         } else if (opt_key == "sparse_infill_pattern") { | ||||
|             steps.emplace_back(posInfill); | ||||
| 
 | ||||
| #if HAS_LIGHTNING_INFILL | ||||
|             const auto *old_fill_pattern = old_config.option<ConfigOptionEnum<InfillPattern>>(opt_key); | ||||
|             const auto *new_fill_pattern = new_config.option<ConfigOptionEnum<InfillPattern>>(opt_key); | ||||
|             assert(old_infill && new_infill); | ||||
|  | @ -766,6 +766,7 @@ bool PrintObject::invalidate_state_by_config_options( | |||
|             // the Lightning infill to another infill or vice versa.
 | ||||
|             if (PrintObject::infill_only_where_needed && (new_fill_pattern->value == ipLightning || old_fill_pattern->value == ipLightning)) | ||||
|                 steps.emplace_back(posPrepareInfill); | ||||
| #endif | ||||
|         } else if (opt_key == "sparse_infill_density") { | ||||
|             // One likely wants to reslice only when switching between zero infill to simulate boolean difference (subtracting volumes),
 | ||||
|             // normal infill and 100% (solid) infill.
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 salt.wei
						salt.wei