forked from bartvdbraak/blender
fix for own error made r35267.
This commit is contained in:
parent
3a2ce2be83
commit
57436f3013
@ -278,7 +278,7 @@ int _BaseMathObject_ReadCallback(BaseMathObject *self)
|
||||
return 0;
|
||||
|
||||
if(!PyErr_Occurred())
|
||||
PyErr_Format(PyExc_RuntimeError, "%s user has become invalid", Py_TYPE(self)->tp_name);
|
||||
PyErr_Format(PyExc_RuntimeError, "%s read, user has become invalid", Py_TYPE(self)->tp_name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -289,7 +289,7 @@ int _BaseMathObject_WriteCallback(BaseMathObject *self)
|
||||
return 0;
|
||||
|
||||
if(!PyErr_Occurred())
|
||||
PyErr_Format(PyExc_RuntimeError, "%s user has become invalid", Py_TYPE(self)->tp_name);
|
||||
PyErr_Format(PyExc_RuntimeError, "%s write, user has become invalid", Py_TYPE(self)->tp_name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -300,7 +300,7 @@ int _BaseMathObject_ReadIndexCallback(BaseMathObject *self, int index)
|
||||
return 0;
|
||||
|
||||
if(!PyErr_Occurred())
|
||||
PyErr_Format(PyExc_RuntimeError, "%s user has become invalid", Py_TYPE(self)->tp_name);
|
||||
PyErr_Format(PyExc_RuntimeError, "%s read index, user has become invalid", Py_TYPE(self)->tp_name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -311,7 +311,7 @@ int _BaseMathObject_WriteIndexCallback(BaseMathObject *self, int index)
|
||||
return 0;
|
||||
|
||||
if(!PyErr_Occurred())
|
||||
PyErr_Format(PyExc_RuntimeError, "%s user has become invalid", Py_TYPE(self)->tp_name);
|
||||
PyErr_Format(PyExc_RuntimeError, "%s write index, user has become invalid", Py_TYPE(self)->tp_name);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -1368,7 +1368,7 @@ static int mathutils_kxgameob_vector_set(BaseMathObject *bmo, int subtype)
|
||||
static int mathutils_kxgameob_vector_get_index(BaseMathObject *bmo, int subtype, int index)
|
||||
{
|
||||
/* lazy, avoid repeteing the case statement */
|
||||
if(!mathutils_kxgameob_vector_get(bmo, subtype))
|
||||
if(mathutils_kxgameob_vector_get(bmo, subtype) == -1)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
@ -1378,7 +1378,7 @@ static int mathutils_kxgameob_vector_set_index(BaseMathObject *bmo, int subtype,
|
||||
float f= bmo->data[index];
|
||||
|
||||
/* lazy, avoid repeteing the case statement */
|
||||
if(!mathutils_kxgameob_vector_get(bmo, subtype))
|
||||
if(mathutils_kxgameob_vector_get(bmo, subtype) == -1)
|
||||
return -1;
|
||||
|
||||
bmo->data[index]= f;
|
||||
|
@ -436,7 +436,7 @@ static int mathutils_obactu_vector_set(BaseMathObject *bmo, int subtype)
|
||||
static int mathutils_obactu_vector_get_index(BaseMathObject *bmo, int subtype, int index)
|
||||
{
|
||||
/* lazy, avoid repeteing the case statement */
|
||||
if(!mathutils_obactu_vector_get(bmo, subtype))
|
||||
if(mathutils_obactu_vector_get(bmo, subtype) == -1)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
@ -446,7 +446,7 @@ static int mathutils_obactu_vector_set_index(BaseMathObject *bmo, int subtype, i
|
||||
float f= bmo->data[index];
|
||||
|
||||
/* lazy, avoid repeteing the case statement */
|
||||
if(!mathutils_obactu_vector_get(bmo, subtype))
|
||||
if(mathutils_obactu_vector_get(bmo, subtype) == -1)
|
||||
return -1;
|
||||
|
||||
bmo->data[index]= f;
|
||||
|
Loading…
Reference in New Issue
Block a user