mathutils: bugfix for matrix * vector
- terrible typo was making the multiplication to run in an infinite loop. - Any matrix * vector multiplication would crash Blender. eg #### import Mathutils from Mathutils import * vec_ray = Vector(0.0, 0.0, 1.0) tilt_mat = RotationMatrix(0.0, 3, "y") vec_ray = tilt_mat * vec_ray ####
This commit is contained in:
		@@ -1315,7 +1315,7 @@ static PyObject *column_vector_multiplication(MatrixObject * mat, VectorObject*
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	vecNew[3] = 1.0f;
 | 
						vecNew[3] = 1.0f;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for(x = 0; x < mat->colSize; z++) {
 | 
						for(x = 0; x < mat->colSize; x++) {
 | 
				
			||||||
		for(y = 0; y < mat->rowSize; y++) {
 | 
							for(y = 0; y < mat->rowSize; y++) {
 | 
				
			||||||
			dot += mat->matrix[y][x] * vecCopy[y];
 | 
								dot += mat->matrix[y][x] * vecCopy[y];
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user