fix own error in recent commit [#25970] cannot create scale matrix after mathutils updates
This commit is contained in:
@@ -332,7 +332,7 @@ static PyObject *C_Matrix_Scale(PyObject *cls, PyObject *args)
|
|||||||
float mat[16] = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
|
float mat[16] = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,
|
||||||
0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f};
|
0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f};
|
||||||
|
|
||||||
if(!PyArg_ParseTuple(args, "fi|O!:Matrix.Scale", &factor, &matSize, &vec)) {
|
if(!PyArg_ParseTuple(args, "fi|O:Matrix.Scale", &factor, &matSize, &vec)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if(matSize != 2 && matSize != 3 && matSize != 4) {
|
if(matSize != 2 && matSize != 3 && matSize != 4) {
|
||||||
|
Reference in New Issue
Block a user