Merge branch 'master' into blender2.8
This commit is contained in:
@@ -5118,6 +5118,9 @@ static PyObject *foreach_getset(BPy_PropertyRNA *self, PyObject *args, int set)
|
|||||||
case PROP_RAW_DOUBLE:
|
case PROP_RAW_DOUBLE:
|
||||||
item = PyFloat_FromDouble((double) ((double *)array)[i]);
|
item = PyFloat_FromDouble((double) ((double *)array)[i]);
|
||||||
break;
|
break;
|
||||||
|
case PROP_RAW_BOOLEAN:
|
||||||
|
item = PyBool_FromLong((long) ((bool *)array)[i]);
|
||||||
|
break;
|
||||||
default: /* PROP_RAW_UNSET */
|
default: /* PROP_RAW_UNSET */
|
||||||
/* should never happen */
|
/* should never happen */
|
||||||
BLI_assert(!"Invalid array type - get");
|
BLI_assert(!"Invalid array type - get");
|
||||||
|
@@ -1100,7 +1100,8 @@ static PyObject *Quaternion_new(PyTypeObject *type, PyObject *args, PyObject *kw
|
|||||||
{
|
{
|
||||||
PyObject *seq = NULL;
|
PyObject *seq = NULL;
|
||||||
double angle = 0.0f;
|
double angle = 0.0f;
|
||||||
float quat[QUAT_SIZE] = {0.0f, 0.0f, 0.0f, 0.0f};
|
float quat[QUAT_SIZE];
|
||||||
|
unit_qt(quat);
|
||||||
|
|
||||||
if (kwds && PyDict_Size(kwds)) {
|
if (kwds && PyDict_Size(kwds)) {
|
||||||
PyErr_SetString(PyExc_TypeError,
|
PyErr_SetString(PyExc_TypeError,
|
||||||
|
Reference in New Issue
Block a user