From 05308ffa0cad1d70193971deac5261475012a1cb Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Thu, 5 Dec 2024 08:36:34 +0100 Subject: [PATCH] Draft: Fix make_point color regression PR #12226 accidentally removed the handling of the color argument of the make_point function. --- src/Mod/Draft/draftmake/make_point.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Draft/draftmake/make_point.py b/src/Mod/Draft/draftmake/make_point.py index ce200c5da6..71556d160a 100644 --- a/src/Mod/Draft/draftmake/make_point.py +++ b/src/Mod/Draft/draftmake/make_point.py @@ -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)