- modified Gerber parser to copy the follow_geometry in the self.apertures
- modified the Properties Tool to show the number of elements in the follow_geometry for each aperture - modified the copy functions to copy the follow_geometry and also the apertures if it's possible (only for Gerber objects)
This commit is contained in:
@@ -4498,6 +4498,15 @@ class App(QtCore.QObject):
|
||||
|
||||
def initialize(obj_init, app):
|
||||
obj_init.solid_geometry = obj.solid_geometry
|
||||
try:
|
||||
obj_init.follow_geometry = obj.follow_geometry
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
obj_init.apertures = obj.apertures
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
if obj.tools:
|
||||
obj_init.tools = obj.tools
|
||||
@@ -4531,6 +4540,15 @@ class App(QtCore.QObject):
|
||||
|
||||
def initialize_geometry(obj_init, app):
|
||||
obj_init.solid_geometry = obj.solid_geometry
|
||||
try:
|
||||
obj_init.follow_geometry = obj.follow_geometry
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
obj_init.apertures = obj.apertures
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
if obj.tools:
|
||||
obj_init.tools = obj.tools
|
||||
@@ -4580,6 +4598,15 @@ class App(QtCore.QObject):
|
||||
|
||||
def initialize(obj_init, app):
|
||||
obj_init.solid_geometry = obj.solid_geometry
|
||||
try:
|
||||
obj_init.follow_geometry = obj.follow_geometry
|
||||
except:
|
||||
pass
|
||||
try:
|
||||
obj_init.apertures = obj.apertures
|
||||
except:
|
||||
pass
|
||||
|
||||
if obj.tools:
|
||||
obj_init.tools = obj.tools
|
||||
|
||||
|
||||
Reference in New Issue
Block a user