mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	This commit is contained in:
		
							parent
							
								
									b022e51d94
								
							
						
					
					
						commit
						27a1a6609f
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -212,9 +212,9 @@ sub _update_shape { | |||
|         my $rect_origin = $self->{optgroups}[SHAPE_RECTANGULAR]->get_value('rect_origin'); | ||||
|         my ($x, $y) = @$rect_size; | ||||
|         return if !looks_like_number($x) || !looks_like_number($y);  # empty strings or '-' or other things | ||||
|         return if !$x || !$y; | ||||
|         return if !$x || !$y or $x == 0 or $y == 0; | ||||
|         my ($x0, $y0) = (0,0); | ||||
|         my ($x1, $y1) = ($x,$y); | ||||
|         my ($x1, $y1) = ($x ,$y); | ||||
|         { | ||||
|             my ($dx, $dy) = @$rect_origin; | ||||
|             return if !looks_like_number($dx) || !looks_like_number($dy);  # empty strings or '-' or other things | ||||
|  | @ -231,7 +231,7 @@ sub _update_shape { | |||
|         ]); | ||||
|     } elsif ($page_idx == SHAPE_CIRCULAR) { | ||||
|         my $diameter = $self->{optgroups}[SHAPE_CIRCULAR]->get_value('diameter'); | ||||
|         return if !$diameter; | ||||
|         return if !$diameter or $diameter == 0; | ||||
|         my $r = $diameter/2; | ||||
|         my $twopi = 2*PI; | ||||
|         my $edges = 60; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Joseph Lenox
						Joseph Lenox