[Bf-blender-cvs] [738fd208397] greasepencil-object: UI: Move show direction to data panel
Antonio Vazquez
noreply at git.blender.org
Tue Jul 11 17:03:36 CEST 2017
Commit: 738fd208397cd1aa563c99b388e2e77398b80110
Author: Antonio Vazquez
Date: Tue Jul 11 17:03:18 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB738fd208397cd1aa563c99b388e2e77398b80110
UI: Move show direction to data panel
===================================================================
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 9347f34f370..d88b1a55a67 100644
--- a/release/scripts/startup/bl_ui/properties_data_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_data_gpencil.py
@@ -71,6 +71,9 @@ class DATA_PT_gpencil_display(DataButtonsPanel, Panel):
row = layout.row()
row.prop(gpd, "keep_stroke_thickness")
+ row = layout.row()
+ row.prop(gpd, "show_stroke_direction", text="Show Stroke Directions")
+
gpl = context.active_gpencil_layer
if gpl:
row = layout.row()
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 55966566742..cde4d792bf3 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -215,10 +215,6 @@ class GreasePencilStrokeEditPanel:
col.operator("gpencil.stroke_join", text="Join & Copy").type = 'JOINCOPY'
col.operator("gpencil.stroke_flip", text="Flip Direction")
- gpd = context.gpencil_data
- if gpd:
- col.prop(gpd, "show_stroke_direction", text="Show Directions")
-
if is_3d_view:
layout.separator()
layout.operator_menu_enum("gpencil.reproject", text="Reproject Strokes...", property="type")
More information about the Bf-blender-cvs
mailing list