- Mathutils.Vector assignment wasnt working in the BGE's py api, was using getValue() rather than setValue()

- added GPL header to bpy_interface.c from 2.4x's BPY_interface.c
- warning fixes
This commit is contained in:
2009-08-26 06:15:43 +00:00
parent d893b0f9ff
commit 4342235489
6 changed files with 47 additions and 9 deletions

View File

@@ -113,7 +113,7 @@ bool PyVecTo(PyObject* pyval, T& vec)
PyErr_Format(PyExc_AttributeError, "error setting vector, %d args, should be %d", pyvec->size, Size(vec));
return false;
}
vec.getValue((float *) pyvec->vec);
vec.setValue((float *) pyvec->vec);
return true;
}
else if(QuaternionObject_Check(pyval)) {
@@ -123,7 +123,7 @@ bool PyVecTo(PyObject* pyval, T& vec)
return false;
}
/* xyzw -> wxyz reordering is done by PyQuatTo */
vec.getValue((float *) pyquat->quat);
vec.setValue((float *) pyquat->quat);
return true;
}
else if(EulerObject_Check(pyval)) {
@@ -132,7 +132,7 @@ bool PyVecTo(PyObject* pyval, T& vec)
PyErr_Format(PyExc_AttributeError, "error setting vector, %d args, should be %d", 3, Size(vec));
return false;
}
vec.getValue((float *) pyeul->eul);
vec.setValue((float *) pyeul->eul);
return true;
} else
#endif