Commit: 9b1b46951c4add7e0201f5a423a28a7958175e96
Author: Antonio Vazquez
Date:   Tue Jul 11 17:16:01 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB9b1b46951c4add7e0201f5a423a28a7958175e96

UI: Change ruler panel header

Now the panel is empty in some modes because we will add primitives in the 
future, but we want to keep the panel as reference.

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py 
b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index cde4d792bf3..c71b24d1b90 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -78,11 +78,19 @@ def gpencil_active_brush_settings_simple(context, layout):
 class GreasePencilDrawingToolsPanel:
     # subclass must set
     # bl_space_type = 'IMAGE_EDITOR'
-    bl_label = "Grease Pencil"
+    bl_label = " "
     bl_category = "Create"
     bl_region_type = 'TOOLS'
 
     @staticmethod
+    def draw_header(self, context):
+        layout = self.layout
+        if context.space_data.type == 'VIEW_3D':
+            layout.label(text="Measurement")
+        else:
+            layout.label(text="Grease Pencil")
+
+    @staticmethod
     def draw(self, context):
         layout = self.layout

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to