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