Arch: small optimization in Arch Reference

This commit is contained in:
Yorik van Havre
2018-12-10 19:41:02 -02:00
parent 48497ebb1a
commit ab8a39698b

View File

@@ -323,11 +323,12 @@ class ViewProviderArchReference:
def updateData(self,obj,prop):
if (prop == "Shape") and hasattr(obj.ViewObject,"UpdateColors") and obj.ViewObject.UpdateColors:
colors = obj.Proxy.getColors(obj)
if colors:
obj.ViewObject.DiffuseColor = colors
from DraftGui import todo
DraftGui.todo.delay(self.recolorize,obj.ViewObject)
if obj.Shape and not obj.Shape.isNull():
colors = obj.Proxy.getColors(obj)
if colors:
obj.ViewObject.DiffuseColor = colors
from DraftGui import todo
todo.delay(self.recolorize,obj.ViewObject)
def recolorize(self,vobj):