GPv3: Wrong object type
Mistake in 658a9ac3a9
Pull Request: https://projects.blender.org/blender/blender/pulls/120653
This commit is contained in:
committed by
Pratik Borhade
parent
a39a967f11
commit
2fefb39e22
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user