BPy: Mathutils fix: bug #3737
Vector.resize4D() didn't put 1 in the 4th component (the scale factor), as it did in 2.37. While this is more "correct", it is much less usefull. Also, matrix.resize4x4 puts a 1 there too, so might as well revert and be consistent.
This commit is contained in:
@@ -160,9 +160,9 @@ PyObject *Vector_Resize4D(VectorObject * self)
|
||||
self->vec = self->data.py_data; //force
|
||||
if(self->size == 2){
|
||||
self->data.py_data[2] = 0.0f;
|
||||
self->data.py_data[3] = 0.0f;
|
||||
self->data.py_data[3] = 1.0f;
|
||||
}else if(self->size == 3){
|
||||
self->data.py_data[3] = 0.0f;
|
||||
self->data.py_data[3] = 1.0f;
|
||||
}
|
||||
self->size = 4;
|
||||
return EXPP_incr_ret((PyObject*)self);
|
||||
|
||||
Reference in New Issue
Block a user