Skip to content

Commit 0e4ca1d

Browse files
authored
Merge pull request #29 from ynput/bugfix/load_alembic_do_not_error_on_non_alembic_objects
Fix Alembic Loader trying to update alembic path on non-alembic generators
2 parents f0fb2d6 + 3004127 commit 0e4ca1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/ayon_cinema4d/plugins/load/load_alembic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def update(self, container, context):
9393
objects.update(children)
9494

9595
for obj in objects:
96-
# Only update those with alembic path set
97-
if obj[c4d.ALEMBIC_PATH]:
96+
# Update Alembic Generators
97+
if obj.IsInstanceOf(c4d.Oalembicgenerator):
9898
obj[c4d.ALEMBIC_PATH] = filepath
9999
continue
100100

0 commit comments

Comments
 (0)