[Bf-blender-cvs] [795a2666978] greasepencil-object: Added missing "Custom Properties" panel for GP Objects

Joshua Leung noreply at git.blender.org
Tue Jun 12 15:42:09 CEST 2018


Commit: 795a26669784577153a08f13dfdc05bb83db4ea9
Author: Joshua Leung
Date:   Wed Jun 13 01:36:28 2018 +1200
Branches: greasepencil-object
https://developer.blender.org/rB795a26669784577153a08f13dfdc05bb83db4ea9

Added missing "Custom Properties" panel for GP Objects

===================================================================

M	release/scripts/startup/bl_ui/properties_data_gpencil.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_data_gpencil.py b/release/scripts/startup/bl_ui/properties_data_gpencil.py
index 407e0426a6a..4941a0d4aaf 100644
--- a/release/scripts/startup/bl_ui/properties_data_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py
@@ -19,6 +19,7 @@
 # <pep8 compliant>
 import bpy
 from bpy.types import Panel, UIList
+from rna_prop_ui import PropertyPanel
 from .properties_grease_pencil_common import (
         GreasePencilDataPanel,
         GreasePencilOnionPanel,
@@ -231,6 +232,10 @@ class DATA_PT_gpencil_display(DataButtonsPanel, Panel):
             layout.prop(gpd, "show_stroke_direction", text="Show Stroke Directions")
 
 
+class DATA_PT_custom_props_gpencil(DataButtonsPanel, PropertyPanel, Panel):
+    _context_path = "object.data"
+    _property_type = bpy.types.GreasePencil
+
 ###############################
 
 classes = (
@@ -241,6 +246,7 @@ classes = (
     DATA_PT_gpencil_parentpanel,
     DATA_PT_gpencil_vertexpanel,
     DATA_PT_gpencil_display,
+    DATA_PT_custom_props_gpencil,
 
     GPENCIL_UL_vgroups,
 )



More information about the Bf-blender-cvs mailing list