Draft: Fix make_point color regression

PR #12226 accidentally removed the handling of the color argument of the make_point function.
This commit is contained in:
Roy-043
2024-12-05 08:36:34 +01:00
parent 96c838f3b9
commit 270d48b42b

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)