Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/spline_nurbs.cc
| Context not available. | |||||
| Span<float> NURBSpline::knots() const | Span<float> NURBSpline::knots() const | ||||
| { | { | ||||
| if (!knots_dirty_) { | if (!knots_dirty_) { | ||||
| BLI_assert(knots_.size() == this->size() + order_); | BLI_assert(knots_.size() == this->knots_size()); | ||||
| return knots_; | return knots_; | ||||
| } | } | ||||
| std::lock_guard lock{knots_mutex_}; | std::lock_guard lock{knots_mutex_}; | ||||
| if (!knots_dirty_) { | if (!knots_dirty_) { | ||||
| BLI_assert(knots_.size() == this->size() + order_); | BLI_assert(knots_.size() == this->knots_size()); | ||||
| return knots_; | return knots_; | ||||
| } | } | ||||
| Context not available. | |||||