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 bbfacbc883
commit 353b2df3d3

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