From 581f1b96cf505992b27c84a5aa1b23fef50dc9cf Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 8 Mar 2024 17:27:49 +0100 Subject: [PATCH] GPv3: Fix missing Custom Properties panel for new GreasePencil ObData. Fairly simple fix, for once. :) --- scripts/startup/bl_ui/properties_data_grease_pencil.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/startup/bl_ui/properties_data_grease_pencil.py b/scripts/startup/bl_ui/properties_data_grease_pencil.py index 1b486be8ea7..d46aba2d6af 100644 --- a/scripts/startup/bl_ui/properties_data_grease_pencil.py +++ b/scripts/startup/bl_ui/properties_data_grease_pencil.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later import bpy from bpy.types import Panel, Menu +from rna_prop_ui import PropertyPanel class DataButtonsPanel: @@ -149,11 +150,17 @@ class DATA_PT_grease_pencil_layer_relations(LayerDataButtonsPanel, Panel): col.prop(layer, "pass_index") +class DATA_PT_grease_pencil_custom_props(DataButtonsPanel, PropertyPanel, Panel): + _context_path = "object.data" + _property_type = bpy.types.GreasePencilv3 + + classes = ( DATA_PT_context_grease_pencil, DATA_PT_grease_pencil_layers, DATA_PT_grease_pencil_layer_transform, DATA_PT_grease_pencil_layer_relations, + DATA_PT_grease_pencil_custom_props, GREASE_PENCIL_MT_grease_pencil_add_layer_extra, )