diff options
author | Joshua Leung <aligorith@gmail.com> | 2014-10-28 05:39:30 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2014-10-28 05:39:30 +0300 |
commit | 37c08c1e9fbbfa11820b074dbf78fab22e746fee (patch) | |
tree | a15ab3bbbdbbae854b3c23c4ca9b0ca352caacce | |
parent | 32db28d08a68e6092a4b420875720710e3641183 (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.py | 2 |
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) |