Skip to content

Commit

Permalink
Don't attempt to assign glTF properties to non-existent Blender prope…
Browse files Browse the repository at this point in the history
…rties.

Although assigning to non-existent Blender properties doesn't seem to cause any errors, this should prevent any unforeseen side-effects from cropping up.
  • Loading branch information
Exairnous committed Jul 24, 2024
1 parent 0ed665d commit e1ae80f
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 e1ae80f

Please sign in to comment.