Place the first spline node in front of camera (#1482)
This commit is contained in:
committed by
GitHub
parent
6bdb24262e
commit
f47fed2ecd
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user