Skip to content

Commit

Permalink
Merge pull request #304 from Exairnous/import-only-assign-if-present
Browse files Browse the repository at this point in the history
Don't attempt to assign glTF properties to non-existent Blender properties.
  • Loading branch information
Exairnous authored Jul 26, 2024
2 parents a068748 + e1ae80f commit 0568759
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/io_hubs_addon/io/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,4 +481,6 @@ def assign_property(vnodes, blender_component, property_name, property_value):
set_color_from_hex(blender_component, property_name, property_value)

else:
if not hasattr(blender_component, property_name):
return
setattr(blender_component, property_name, property_value)

0 comments on commit 0568759

Please sign in to comment.