- refactoring all the references to object options property to obj_options to make a difference with the application options property
This commit is contained in:
@@ -119,7 +119,7 @@ class ToolInvertGerber(AppTool):
|
||||
# SELECT THE CURRENT OBJECT
|
||||
obj = self.app.collection.get_active()
|
||||
if obj and obj.kind == 'gerber':
|
||||
obj_name = obj.options['name']
|
||||
obj_name = obj.obj_options['name']
|
||||
self.ui.gerber_combo.set_value(obj_name)
|
||||
|
||||
def on_grb_invert(self):
|
||||
@@ -160,8 +160,8 @@ class ToolInvertGerber(AppTool):
|
||||
new_solid_geometry = flatten_shapely_geometry(new_solid_geometry)
|
||||
|
||||
new_options = {}
|
||||
for opt in grb_obj.options:
|
||||
new_options[opt] = deepcopy(grb_obj.options[opt])
|
||||
for opt in grb_obj.obj_options:
|
||||
new_options[opt] = deepcopy(grb_obj.obj_options[opt])
|
||||
|
||||
new_apertures = {}
|
||||
|
||||
@@ -181,8 +181,8 @@ class ToolInvertGerber(AppTool):
|
||||
new_apertures[0]['geometry'].append(new_el)
|
||||
|
||||
def init_func(new_obj, app_obj):
|
||||
new_obj.options.update(new_options)
|
||||
new_obj.options['name'] = outname
|
||||
new_obj.obj_options.update(new_options)
|
||||
new_obj.obj_options['name'] = outname
|
||||
new_obj.fill_color = deepcopy(grb_obj.fill_color)
|
||||
new_obj.outline_color = deepcopy(grb_obj.outline_color)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user