[Bf-extensions-cvs] [d68cdda] master: Fix: error message in None selected objects
Eugenio Pignataro
noreply at git.blender.org
Wed Nov 27 17:55:21 CET 2013
Commit: d68cdda4cd80534be1cf1e306fa5eaebdb16387c
Author: Eugenio Pignataro
Date: Wed Nov 27 13:54:06 2013 -0300
http://developer.blender.org/rBACd68cdda4cd80534be1cf1e306fa5eaebdb16387c
Fix: error message in None selected objects
===================================================================
M oscurart_mesh_cache_tools.py
===================================================================
diff --git a/oscurart_mesh_cache_tools.py b/oscurart_mesh_cache_tools.py
index 20eea41..7a3935b 100644
--- a/oscurart_mesh_cache_tools.py
+++ b/oscurart_mesh_cache_tools.py
@@ -214,7 +214,7 @@ class OscMeshCacheUp(bpy.types.Operator):
@classmethod
def poll(cls, context):
- return(bpy.context.object.type == "MESH")
+ return(bpy.context.object != None and bpy.context.object.type == "MESH")
def execute(self, context):
More information about the Bf-extensions-cvs
mailing list