diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ca83d7..0ff707c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ Activate / deactivate layer opacity according to prefix Activate / deactivate all masks using MA layers --> +1.8.9 + +- fixed: error when setting object active at the end of autobuild + 1.8.8 - added: Add `export transformation to AE` in export menu: diff --git a/OP_auto_build.py b/OP_auto_build.py index 7b2e471..0ae7206 100644 --- a/OP_auto_build.py +++ b/OP_auto_build.py @@ -329,7 +329,7 @@ class GPEXP_OT_render_auto_build(bpy.types.Operator): # batch_setup_render_scene(render_scn=render_scn) ## set at least one GP object active - gp_ob = next((o for o in render_scn.objects if o.type == 'GPENCIL'), None) + gp_ob = next((o for o in context.view_layer.objects if o.type == 'GPENCIL'), None) if gp_ob: context.view_layer.objects.active = gp_ob diff --git a/__init__.py b/__init__.py index 06ba50c..eb7f395 100644 --- a/__init__.py +++ b/__init__.py @@ -2,7 +2,7 @@ bl_info = { "name": "GP Render", "description": "Organise export of gp layers through compositor output", "author": "Samuel Bernou", - "version": (1, 8, 8), + "version": (1, 8, 9), "blender": (3, 0, 0), "location": "View3D", "warning": "",