We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91434a0 commit 27b795cCopy full SHA for 27b795c
math/transform_nd.cpp
@@ -637,9 +637,9 @@ VectorN TransformND::get_scale_abs() const {
637
}
638
639
void TransformND::set_scale_abs(const VectorN &p_scale) {
640
- const int column_count = _columns.size();
641
- for (int i = 0; i < column_count; i++) {
642
- const double scale = p_scale[i];
+ const int64_t column_count = _columns.size();
+ for (int64_t i = 0; i < column_count; i++) {
+ const double scale = i < p_scale.size() ? p_scale[i] : 1.0;
643
_columns.set(i, VectorND::with_length(_columns[i], scale));
644
645
0 commit comments