Skip to content

Commit

Permalink
Fix update method to use 'shape' instead of 'geometry' in merge_proje…
Browse files Browse the repository at this point in the history
…ct_meta function
  • Loading branch information
GoldenAnpu committed Feb 21, 2025
1 parent 4873597 commit 716f783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ def merge_project_meta(src_project_id, dst_project_id):
):
if obj_class.geometry_type == sly.GraphNodes:
raise ValueError(f"Cannot merge GraphNodes with {dst_obj_class.geometry_type}")
api.object_class.update(dst_obj_class.sly_id, geometry=sly.AnyGeometry.name())
api.object_class.update(dst_obj_class.sly_id, shape=sly.AnyGeometry.name())
dst_obj_class = dst_obj_class.clone(geometry_type=sly.AnyGeometry)
dst_project_meta = dst_project_meta.delete_obj_class(obj_class.name)
dst_project_meta = dst_project_meta.add_obj_class(dst_obj_class)
Expand Down

0 comments on commit 716f783

Please sign in to comment.