GPv3: Wrong object type

Mistake in 658a9ac3a9

Pull Request: https://projects.blender.org/blender/blender/pulls/120653
This commit is contained in:
Pratik Borhade
2024-04-15 12:52:09 +02:00
committed by Pratik Borhade
parent a39a967f11
commit 2fefb39e22
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ class GreasePencilDisplayPanel:
def poll(cls, context):
ob = context.active_object
brush = context.tool_settings.gpencil_paint.brush
if ob and ob.type in {'GPENCIL', 'GREASE_PENCIL'} and brush:
if ob and ob.type in {'GPENCIL', 'GREASEPENCIL'} and brush:
return True
return False

View File

@@ -2469,7 +2469,7 @@ class _defs_grease_pencil_sculpt:
tool_settings = context.scene.tool_settings
return (
ob is not None and
ob.type in {'GPENCIL', 'GREASE_PENCIL'} and (
ob.type in {'GPENCIL', 'GREASEPENCIL'} and (
tool_settings.use_gpencil_select_mask_point or
tool_settings.use_gpencil_select_mask_stroke or
tool_settings.use_gpencil_select_mask_segment