Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2014-10-28 05:39:30 +0300
committerJoshua Leung <aligorith@gmail.com>2014-10-28 05:39:30 +0300
commit37c08c1e9fbbfa11820b074dbf78fab22e746fee (patch)
treea15ab3bbbdbbae854b3c23c4ca9b0ca352caacce
parent32db28d08a68e6092a4b420875720710e3641183 (diff)
Fix: Poll for toolshelf UI buttons was spitting out warnings
Casting to bool is safer there
-rw-r--r--release/scripts/startup/bl_ui/properties_grease_pencil_common.py2
1 files changed, 1 insertions, 1 deletions
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 3720495f200..3575331eac8 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -99,7 +99,7 @@ class GreasePencilStrokeEditPanel():
layout = self.layout
gpd = context.gpencil_data
- edit_ok = context.editable_gpencil_strokes and gpd.use_stroke_edit_mode
+ edit_ok = bool(context.editable_gpencil_strokes) and bool(gpd.use_stroke_edit_mode)
col = layout.column(align=True)
col.prop(gpd, "use_stroke_edit_mode", text="Enable Editing", icon='EDIT', toggle=True)