From f47fed2ecd764694bfc0ab591ee0d47e3295f91f Mon Sep 17 00:00:00 2001 From: Stanislav Denisov Date: Wed, 7 Jan 2026 12:33:46 +0100 Subject: [PATCH] Place the first spline node in front of camera (#1482) --- Editor/SplineWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Editor/SplineWindow.cpp b/Editor/SplineWindow.cpp index b7d180ade..61e0c0e9a 100644 --- a/Editor/SplineWindow.cpp +++ b/Editor/SplineWindow.cpp @@ -331,6 +331,11 @@ void SplineWindow::NewNode() transform.Translate(D); transform.UpdateTransform(); } + else if (editor->generalWnd.placeInFrontOfCameraCheckBox.GetCheck()) + { + transform.translation_local = editor->GetPositionInFrontOfCamera(); + transform.SetDirty(); + } spline->spline_node_entities.push_back(node_entity); spline->spline_node_transforms.push_back(transform); scene.Component_Attach(node_entity, entity);