Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit e41ac03

Browse files
authored
Merge pull request FreeCAD#18307 from Roy-043/Draft-Fix-make_point-color-regression
Draft: Fix make_point color regression
2 parents 32fa1f7 + 270d48b commit e41ac03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Mod/Draft/draftmake/make_point.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def make_point(X=0, Y=0, Z=0, color=None, name="Point", point_size=5):
8080
if App.GuiUp:
8181
ViewProviderPoint(obj.ViewObject)
8282
gui_utils.formatObject(obj)
83+
if color is not None:
84+
obj.ViewObject.PointColor = (float(color[0]), float(color[1]), float(color[2]))
8385
obj.ViewObject.PointSize = point_size
8486
gui_utils.select(obj)
8587

0 commit comments

Comments
 (0)