From 4618982a37e3c1ecdc799d4430d2fc80690b6a7e Mon Sep 17 00:00:00 2001 From: pullusb Date: Thu, 28 Mar 2024 10:29:44 +0100 Subject: [PATCH] remove poll check of gp active limiting use in script call 1.6.4 --- CHANGELOG.md | 4 ++++ OP_setup_layers.py | 12 ++++++------ __init__.py | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 143e1d0..d5235c6 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.6.4 + +- changed: remove poll checking gp active on some operators limiting use in script call + 1.6.3 - changed: remove poll check on autobuild operator diff --git a/OP_setup_layers.py b/OP_setup_layers.py index 4affacc..3287310 100644 --- a/OP_setup_layers.py +++ b/OP_setup_layers.py @@ -57,9 +57,9 @@ class GPEXP_OT_export_infos_for_compo(bpy.types.Operator): bl_description = "Export informations for compositing, including layers with masks, fusion mode, opacity" bl_options = {"REGISTER"} - @classmethod - def poll(cls, context): - return context.object and context.object.type == 'GPENCIL' + # @classmethod + # def poll(cls, context): + # return context.object and context.object.type == 'GPENCIL' skip_check : bpy.props.BoolProperty(default=False, options={'SKIP_SAVE'}) @@ -416,9 +416,9 @@ class GPEXP_OT_auto_number_object(bpy.types.Operator): bl_description = "Automatic prefix number based on origin distance to camera and in_front values\nCtrl + Clic to delete name to delete numbering" bl_options = {"REGISTER", "UNDO"} - @classmethod - def poll(cls, context): - return context.object and context.object.type == 'GPENCIL' + # @classmethod + # def poll(cls, context): + # return context.object and context.object.type == 'GPENCIL' all_objects : BoolProperty(name='On All GP Object', default=True, description='On All object, else use selected Grease Pencil objects') # , options={'SKIP_SAVE'} diff --git a/__init__.py b/__init__.py index 0ccfc34..79d0aef 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, 6, 3), + "version": (1, 6, 4), "blender": (3, 0, 0), "location": "View3D", "warning": "",