Skip to content

Commit

Permalink
Support importing older scale audio feedback components.
Browse files Browse the repository at this point in the history
Skip importing properties for components if they don't have any.
Older scale audio feedback components didn't have component properties and were just the name and an empty string.
  • Loading branch information
Exairnous committed Jul 23, 2024
1 parent 0ed665d commit 6861607
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions addons/io_hubs_addon/components/hubs_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,10 @@ def gather(self, export_settings, object):
@classmethod
def gather_import(cls, gltf, blender_host, component_name, component_value, import_report, blender_ob=None):
component = import_component(component_name, blender_host)
for property_name, property_value in component_value.items():
assign_property(gltf.vnodes, component,
property_name, property_value)
if component_value:
for property_name, property_value in component_value.items():
assign_property(gltf.vnodes, component,
property_name, property_value)

def post_export(self, export_settings, host, ob=None):
'''This is called by the exporter after the export process has finished'''
Expand Down

0 comments on commit 6861607

Please sign in to comment.