kopia lustrzana https://github.com/inkstitch/inkstitch
				
				
				
			remove pixels_per_mm option
							rodzic
							
								
									21c22bd790
								
							
						
					
					
						commit
						9778d85326
					
				| 
						 | 
				
			
			@ -4,7 +4,6 @@
 | 
			
		|||
    <id>jonh.embroider</id>
 | 
			
		||||
    <dependency type="executable" location="extensions">embroider.py</dependency>
 | 
			
		||||
    <dependency type="executable" location="extensions">inkex.py</dependency>
 | 
			
		||||
    <param name="pixels_per_mm" type="float" min="1" max="100" precision="2" _gui-text="Pixels per millimeter">10</param>
 | 
			
		||||
    <param name="zigzag_spacing_mm"       type="float"   min="0.01" max="5.00" precision="2" _gui-text="Zigzag spacing (mm)">0.40</param>
 | 
			
		||||
    <param name="row_spacing_mm"       type="float"   min="0.01" max="5.00" precision="2" _gui-text="Row spacing (mm)">0.25</param>
 | 
			
		||||
    <param name="max_stitch_len_mm"       type="float"   min="0.1" max="100.0" _gui-text="Maximum stitch length (mm)">3.0</param>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -207,7 +207,6 @@ class EmbroideryElement(object):
 | 
			
		|||
            return default
 | 
			
		||||
 | 
			
		||||
        if param.endswith('_mm'):
 | 
			
		||||
            # print >> dbg, "get_float_param", param, value, "*", self.options.pixels_per_mm
 | 
			
		||||
            value = value * PIXELS_PER_MM
 | 
			
		||||
 | 
			
		||||
        return value
 | 
			
		||||
| 
						 | 
				
			
			@ -1922,10 +1921,6 @@ class Embroider(inkex.Effect):
 | 
			
		|||
                                     action="store", type="int",
 | 
			
		||||
                                     dest="max_backups", default=5,
 | 
			
		||||
                                     help="Max number of backups of output files to keep.")
 | 
			
		||||
        self.OptionParser.add_option("-p", "--pixels_per_mm",
 | 
			
		||||
                                     action="store", type="float",
 | 
			
		||||
                                     dest="pixels_per_mm", default=10,
 | 
			
		||||
                                     help="Number of on-screen pixels per millimeter.")
 | 
			
		||||
        self.patches = []
 | 
			
		||||
 | 
			
		||||
    def handle_node(self, node):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue