Draft: fixed bug in Point tool

This commit is contained in:
Yorik van Havre
2018-01-06 13:09:03 -02:00
parent f91270d985
commit 540b1d290f

View File

@@ -2903,7 +2903,7 @@ def makePoint(X=0, Y=0, Z=0,color=None,name = "Point", point_size= 5):
obj.Z = Z
if gui:
_ViewProviderPoint(obj.ViewObject)
if not color:
if hasattr(FreeCADGui,"draftToolBar") and (not color):
color = FreeCADGui.draftToolBar.getDefaultColor('ui')
obj.ViewObject.PointColor = (float(color[0]), float(color[1]), float(color[2]))
obj.ViewObject.PointSize = point_size