Place the first spline node in front of camera (#1482)

This commit is contained in:
Stanislav Denisov
2026-01-07 12:33:46 +01:00
committed by GitHub
parent 6bdb24262e
commit f47fed2ecd
+5
View File
@@ -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);