Skip to content

Commit

Permalink
Draft: fixed bug in Point tool
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jan 6, 2018
1 parent f762982 commit 4c9c017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/Draft.py
Expand Up @@ -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
Expand Down

0 comments on commit 4c9c017

Please sign in to comment.