Draft: fixed bug when loading objects with pattern set

This commit is contained in:
Yorik van Havre
2015-12-28 12:56:53 -02:00
parent 99fd1ba66f
commit fc9731d029

View File

@@ -3216,7 +3216,7 @@ class _ViewProviderDraft:
def onChanged(self, vobj, prop):
# treatment of patterns and image textures
if prop in ["TextureImage","Pattern"]:
if prop in ["TextureImage","Pattern","DiffuseColor"]:
if hasattr(self.Object,"Shape"):
if self.Object.Shape.Faces:
from pivy import coin