Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support importing older scale audio feedback components. #298

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading