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 12:10:37 +01:00
committed by Roy-043
parent a7f1699e0d
commit f0ef15df98
+2
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)