Fix: Outliner: Grease Pencil object filter

The filter for grease pencil objects wasn't showing up.
The code was still checking for the legacy type.
Now, we're checking for the right object type and
are also looking at the `bpy.data.grease_pencils_v3`
list to make the checkbox show up in the UI.
This commit is contained in:
Falk David
2024-07-19 17:29:10 +02:00
parent c09ed8a04f
commit a5c4218b02
4 changed files with 6 additions and 6 deletions

View File

@@ -492,7 +492,7 @@ class OUTLINER_PT_filter(Panel):
row = sub.row()
row.label(icon='CAMERA_DATA')
row.prop(space, "use_filter_object_camera", text="Cameras")
if bpy.data.grease_pencils:
if bpy.data.grease_pencils_v3:
row = sub.row()
row.label(icon='STROKE')
row.prop(space, "use_filter_object_grease_pencil", text="Grease Pencil")