Loading x3d_step_assy3.py +6 −3 Original line number Diff line number Diff line Loading @@ -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) Loading Loading
x3d_step_assy3.py +6 −3 Original line number Diff line number Diff line Loading @@ -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) Loading