Skip to content

Commit

Permalink
Safety checks
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed May 8, 2024
1 parent f854a1d commit d865bad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions addons/io_hubs_addon/components/definitions/grabbable.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ def migrate(self, migration_type, panel_type, instance_version, host, migration_
if instance_version <= (1, 0, 0):
migration_occurred = True

remove_component(host, "capturable")
remove_component(host, "networked-object-properties")
# This was a component that has disappeared but it was usually added together with grababble so we try to remove those instances.
if "capturable" in host.hubs_component_list.items:
remove_component(host, "capturable")

if "networked-object-properties" in host.hubs_component_list.items:
remove_component(host, "networked-object-properties")

add_component(host, NetworkedTransform.get_name())

return migration_occurred

0 comments on commit d865bad

Please sign in to comment.