remove poll check of gp active limiting use in script call

1.6.4
main
pullusb 2024-03-28 10:29:44 +01:00
parent 4bf13755eb
commit 4618982a37
3 changed files with 11 additions and 7 deletions

View File

@ -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

View File

@ -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'}

View File

@ -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": "",