mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-13 00:38:33 -05:00
Only show error once
This commit is contained in:
@@ -74,7 +74,7 @@ const std::vector<glm::dvec3> PathSegment::getControlPoints() const {
|
||||
|
||||
CameraPose PathSegment::traversePath(double dt) {
|
||||
if (!_curve || !_rotationInterpolator || !_speedFunction) {
|
||||
LERROR("Cannot traverse path. Curve type has not been properly defined.");
|
||||
// TODO: handle better (abort path somehow)
|
||||
return _start.pose;
|
||||
}
|
||||
|
||||
@@ -153,6 +153,11 @@ void PathSegment::initCurve() {
|
||||
LERROR("Could not create curve. Type does not exist!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_curve || !_rotationInterpolator || !_speedFunction) {
|
||||
LERROR("Curve type has not been properly initialized.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace openspace::autonavigation
|
||||
|
||||
Reference in New Issue
Block a user