Merge pull request #18307 from Roy-043/Draft-Fix-make_point-color-regression

Draft: Fix make_point color regression
This commit is contained in:
Roy-043
2024-12-05 11:53:24 +01:00
committed by GitHub

View File

@@ -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)