Skip to content

Commit

Permalink
Merge pull request #298 from Exairnous/support-older-scale-audio-feed…
Browse files Browse the repository at this point in the history
…back-component

Support importing older scale audio feedback components.
  • Loading branch information
Exairnous authored Jul 26, 2024
2 parents 0ed665d + 6861607 commit 0245990
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 0245990

Please sign in to comment.