- in Corner Markers Plugin - finished the feature of adding markers geometry to an external Geometry object

This commit is contained in:
Marius Stanciu
2021-10-08 22:36:09 +03:00
committed by Marius
parent e7fd78ea28
commit af0fce63e9
2 changed files with 7 additions and 2 deletions

View File

@@ -630,6 +630,11 @@ class ToolCorners(AppTool):
}
}
# remove possible tools without geometry
for tool in list(new_tools.keys()):
if not new_tools[tool]['solid_geometry']:
new_tools.pop(tool)
s_list = []
if new_geo_obj.solid_geometry:
if isinstance(new_geo_obj.solid_geometry, MultiPolygon):
@@ -653,8 +658,7 @@ class ToolCorners(AppTool):
def initialize(geo_obj, app_obj):
geo_obj.options = LoudDict()
for opt in new_geo_obj.options:
if opt != 'name' and opt in geo_obj.options:
geo_obj.options[opt] = deepcopy(app_obj.options[opt])
geo_obj.options[opt] = deepcopy(new_geo_obj.options[opt])
geo_obj.options['name'] = outname
# Propagate options