From d68cdda4cd80534be1cf1e306fa5eaebdb16387c Mon Sep 17 00:00:00 2001
From: Eugenio Pignataro <info@oscurart.com.ar>
Date: Wed, 27 Nov 2013 13:54:06 -0300
Subject: [PATCH] Fix: error message in None selected objects

---
 oscurart_mesh_cache_tools.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oscurart_mesh_cache_tools.py b/oscurart_mesh_cache_tools.py
index 20eea41b..7a3935bd 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):
 
-- 
GitLab