[Bf-blender-cvs] [0a3e36df55c] greasepencil-object: Fix UI warning
Antonio Vazquez
noreply at git.blender.org
Mon Dec 18 17:50:30 CET 2017
Commit: 0a3e36df55c91a93a70cc9a132b2a571cae30adc
Author: Antonio Vazquez
Date: Mon Dec 18 17:43:52 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rB0a3e36df55c91a93a70cc9a132b2a571cae30adc
Fix UI warning
===================================================================
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 c6354e3b523..d340a91e0ec 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -1221,7 +1221,8 @@ class GreasePencilDataPanel:
sub.operator("gpencil.layer_isolate", icon='RESTRICT_VIEW_OFF', text="").affect_visibility = True
row = layout.row(align=True)
- row.prop(gpl, "opacity", text="Opacity", slider=True)
+ if gpl:
+ row.prop(gpl, "opacity", text="Opacity", slider=True)
layout.separator()
More information about the Bf-blender-cvs
mailing list