Commit: 0a76dbba5b6644cd18814e0b449aec088a0545ef
Author: Antonio Vazquez
Date:   Mon Jun 12 12:13:22 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB0a76dbba5b6644cd18814e0b449aec088a0545ef

UI: Move show points to display panel

This option is not used all the time and moving we keep layer panel cleaner

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_data_gpencil.py 
b/release/scripts/startup/bl_ui/properties_data_gpencil.py
index d8ed827b6c4..9347f34f370 100644
--- a/release/scripts/startup/bl_ui/properties_data_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py
@@ -71,6 +71,12 @@ class DATA_PT_gpencil_display(DataButtonsPanel, Panel):
         row = layout.row()
         row.prop(gpd, "keep_stroke_thickness")
 
+        gpl = context.active_gpencil_layer
+        if gpl:
+            row = layout.row()
+            row.prop(gpl, "show_points")
+
+
 
 classes = (
     DATA_PT_gpencil,
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 80f26214741..4186e00c80b 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -965,9 +965,10 @@ class GreasePencilDataPanel:
             row.prop(gpl, "use_stroke_location")
 
         # Layer options
-        split = layout.split(percentage=0.5)
-        split.active = not gpl.lock
-        split.prop(gpl, "show_points")
+        if context.space_data.type not in ('VIEW_3D', 'PROPERTIES'):
+            split = layout.split(percentage=0.5)
+            split.active = not gpl.lock
+            split.prop(gpl, "show_points")
 
         # Offsets + Parenting (where available)
         if context.space_data.type in ('VIEW_3D', 'PROPERTIES'):

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

Reply via email to