[Bf-extensions-cvs] [4c6945e] master: Code cleanup: changes in a poll.

Eugenio Pignataro noreply at git.blender.org
Wed Nov 27 21:41:28 CET 2013


Commit: 4c6945e1962ce42bb8e6bc6164464c80942419b8
Author: Eugenio Pignataro
Date:   Wed Nov 27 17:40:30 2013 -0300
http://developer.blender.org/rBAC4c6945e1962ce42bb8e6bc6164464c80942419b8

Code cleanup: changes in a poll.

===================================================================

M	oscurart_mesh_cache_tools.py

===================================================================

diff --git a/oscurart_mesh_cache_tools.py b/oscurart_mesh_cache_tools.py
index 7a3935b..64f459c 100644
--- a/oscurart_mesh_cache_tools.py
+++ b/oscurart_mesh_cache_tools.py
@@ -214,7 +214,8 @@ class OscMeshCacheUp(bpy.types.Operator):
 
     @classmethod
     def poll(cls, context):
-        return(bpy.context.object != None and bpy.context.object.type == "MESH")
+        obj = context.object
+        return (obj and obj.type == "MESH")
 
     def execute(self, context):



More information about the Bf-extensions-cvs mailing list