Merge pull request #18307 from Roy-043/Draft-Fix-make_point-color-regression
Draft: Fix make_point color regression
This commit is contained in:
@@ -80,6 +80,8 @@ def make_point(X=0, Y=0, Z=0, color=None, name="Point", point_size=5):
|
||||
if App.GuiUp:
|
||||
ViewProviderPoint(obj.ViewObject)
|
||||
gui_utils.formatObject(obj)
|
||||
if color is not None:
|
||||
obj.ViewObject.PointColor = (float(color[0]), float(color[1]), float(color[2]))
|
||||
obj.ViewObject.PointSize = point_size
|
||||
gui_utils.select(obj)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user