Skip to content

Commit

Permalink
Merge pull request ynput#67 from BlueLag/fx_build_workfile_enable_all…
Browse files Browse the repository at this point in the history
…_instances

fix: remove animation check to enable instances by default
  • Loading branch information
BlueLag authored Sep 15, 2023
2 parents 77f9ace + e3e6006 commit 70a4ffa
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions openpype/hosts/blender/scripts/build_workfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,20 +851,6 @@ def build_anim(project_name, asset_name):
animation_instance = bpy.context.scene.openpype_instances[-1]
add_datablocks_to_container(objects[1:], animation_instance)

# Enabled instance for publishing if any member objects are animated.
publish_enabled = False
for obj in objects:
if (
isinstance(obj, bpy.types.Object)
and obj.animation_data
and obj.animation_data.action
):
publish_enabled = True
break
elif isinstance(obj, bpy.types.Collection):
objects.extend(obj.all_objects)
animation_instance.publish = publish_enabled

# load the audio reference as sound into sequencer
if audio_repre:
load_subset(project_name, audio_repre, "Audio")
Expand Down Expand Up @@ -1044,6 +1030,7 @@ def build_fabrication(project_name: str, asset_name: str):
)
apply_settings(bpy.context.scene, render_settings)


def build_render(project_name, asset_name):
"""Build render workfile.
Expand Down

0 comments on commit 70a4ffa

Please sign in to comment.