[Bf-blender-cvs] [67c7b583130] greasepencil-object: UI: Second round to fix panel
Antonio Vazquez
noreply at git.blender.org
Wed Jun 20 18:54:55 CEST 2018
Commit: 67c7b583130e6c4dde321e735a24cb3331980114
Author: Antonio Vazquez
Date: Wed Jun 20 18:54:48 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB67c7b583130e6c4dde321e735a24cb3331980114
UI: Second round to fix panel
I made stupids errors in previous commit
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index ec0cb4c62ab..66083fcbc64 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -158,6 +158,7 @@ class VIEW3D_HT_header(Header):
if obj:
# Proportional editing
+ gpd = context.gpencil_data
if gpd is not None:
if gpd.use_stroke_edit_mode or gpd.is_stroke_sculpt_mode:
row = layout.row(align=True)
@@ -182,6 +183,7 @@ class VIEW3D_HT_header(Header):
sub.prop(tool_settings, "proportional_edit_falloff", icon_only=True)
else:
# Proportional editing
+ gpd = context.gpencil_data
if gpd is not None:
if gpd.use_stroke_edit_mode or gpd.is_stroke_sculpt_mode:
row = layout.row(align=True)
More information about the Bf-blender-cvs
mailing list