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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user