Commit 5a4e5e91 authored by Andrey Filippov's avatar Andrey Filippov
Browse files

minor bug fix, related to previous changes

parent 01577f6c
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -999,8 +999,11 @@ def prepareX3dExport(freecadObjects, fname=""):
        if (not o.ViewObject) or (o.ViewObject.Visibility):
            if hasattr(o, "Shape"):
                color_set=set()
                if o.ViewObject:
                    for clr in o.ViewObject.DiffuseColor:
                try:
                    dc = o.ViewObject.DiffuseColor
                except AttributeError:
                    continue 
                for clr in dc: 
                    color_set.add(clr)
                if (len(color_set)>1): # process multi-color objects
                    col_list = list(color_set)