Draft: fixed bug in Point tool
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user