Draft: Condensed the Draft toolbar style buttons into one with more options
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user