From c8e576b7e7e91bf18f749cd8e1a4f6894e40d088 Mon Sep 17 00:00:00 2001 From: pullusb Date: Tue, 27 Jun 2023 17:28:36 +0200 Subject: [PATCH] show send single object even in non-render scene --- ui.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui.py b/ui.py index bdbbc92..20b5664 100644 --- a/ui.py +++ b/ui.py @@ -230,9 +230,8 @@ class GPEXP_PT_gp_dopesheet_ui(Panel): col = layout.column() col.label(text='Whole Objects:') - if context.scene.name != 'Render': - txt = f'{len([o for o in context.selected_objects if o.type == "GPENCIL" and o.select_get()])} Selected Object(s) To Render' - col.operator('gp.add_object_to_render', icon='RENDERLAYERS', text=txt).mode='SELECTED' + txt = f'{len([o for o in context.selected_objects if o.type == "GPENCIL" and o.select_get()])} Selected Object(s) To Render' + col.operator('gp.add_object_to_render', icon='RENDERLAYERS', text=txt).mode='SELECTED' col.operator('gp.add_object_to_render', icon='RENDERLAYERS', text='All Visible GP To Render').mode='ALL' layout.separator()