Add AutoColor handling for sketches in gui_setstyle.py (#25781)

This commit is contained in:
Roy-043
2026-01-14 15:53:31 +01:00
committed by GitHub
parent eef47d9a66
commit e4eebe50d0

View File

@@ -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()[