[Bf-blender-cvs] [72babc41b0d] greasepencil-object: Cleanup style
Antonio Vazquez
noreply at git.blender.org
Fri Oct 20 19:17:57 CEST 2017
Commit: 72babc41b0de3066100347b314bbeefebc4b4530
Author: Antonio Vazquez
Date: Fri Oct 20 19:17:47 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB72babc41b0de3066100347b314bbeefebc4b4530
Cleanup style
===================================================================
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 133943770ad..b07066331d3 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -550,11 +550,7 @@ class GreasePencilEraserPanel:
if context.gpencil_data is None:
return False
- is_paintmode = context.active_object and context.active_object.mode in ('GPENCIL_PAINT')
- if context.active_object and is_paintmode:
- return True
- else:
- return False
+ return context.active_object and context.active_object.mode == 'GPENCIL_PAINT'
@staticmethod
def draw(self, context):
More information about the Bf-blender-cvs
mailing list