diff --git a/texture_manager.py b/texture_manager.py index 1ffe8b3..90d3324 100644 --- a/texture_manager.py +++ b/texture_manager.py @@ -196,7 +196,10 @@ def isTexturable(self, o): if not hasattr(o, 'Shape') or o.Shape is None or o.Shape.isNull(): return False - if not hasattr(o, 'Material') or o.Material is None: + if not hasattr(o, 'Material') or o.Material is None or o.Material == '': + return False + + if not hasattr(o.Material, 'Name') or o.Material.Name is None or o.Material.Name == '': return False return o.ViewObject.Visibility