Add AutoColor handling for sketches in gui_setstyle.py (#25781)
This commit is contained in:
@@ -422,6 +422,9 @@ class Draft_SetStyle_TaskPanel:
|
||||
|
||||
properties = vobj.PropertiesList
|
||||
if "FontName" not in properties: # Shapes
|
||||
if "AutoColor" in properties:
|
||||
# For sketches.
|
||||
vobj.AutoColor = False
|
||||
if "ShapeAppearance" in properties:
|
||||
material = App.Material()
|
||||
material.DiffuseColor = self.form.ShapeColor.property("color").getRgbF()[
|
||||
|
||||
Reference in New Issue
Block a user