From e1ae80f58fa24ada75ea67225fb8c213d6755baa Mon Sep 17 00:00:00 2001 From: Ryan Inch Date: Wed, 24 Jul 2024 01:16:21 -0400 Subject: [PATCH] Don't attempt to assign glTF properties to non-existent Blender properties. Although assigning to non-existent Blender properties doesn't seem to cause any errors, this should prevent any unforeseen side-effects from cropping up. --- addons/io_hubs_addon/io/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/io_hubs_addon/io/utils.py b/addons/io_hubs_addon/io/utils.py index 8f39c8e9..d74263c5 100644 --- a/addons/io_hubs_addon/io/utils.py +++ b/addons/io_hubs_addon/io/utils.py @@ -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)