Draft: Condensed the Draft toolbar style buttons into one with more options

This commit is contained in:
Yorik van Havre
2020-11-10 14:14:18 +01:00
parent 485b0b58a0
commit 88f5fc20b1
11 changed files with 562 additions and 43 deletions

View File

@@ -84,7 +84,7 @@ def make_point(X=0, Y=0, Z=0, color=None, name = "Point", point_size= 5):
if App.GuiUp:
ViewProviderPoint(obj.ViewObject)
if hasattr(Gui,"draftToolBar") and (not color):
color = Gui.draftToolBar.getDefaultColor('ui')
color = Gui.draftToolBar.getDefaultColor('line')
obj.ViewObject.PointColor = (float(color[0]), float(color[1]), float(color[2]))
obj.ViewObject.PointSize = point_size
obj.ViewObject.Visibility = True