fix for #1123 by Roland Hess (harkyman)
Testing has not convinced me this is a complete solution to the Ipo Curve handle issue, but it does seem to make things better for curves created via python. We will probably need to revisit this, especially if we expose the curve handles in the bpy interface.
This commit is contained in:
parent
1e75dbc0a1
commit
2609a608bb
@ -35,6 +35,7 @@
|
||||
#include <BKE_global.h>
|
||||
#include <BKE_object.h>
|
||||
#include <BKE_library.h>
|
||||
#include <BKE_ipo.h>
|
||||
#include <BLI_blenlib.h>
|
||||
|
||||
#include "constant.h"
|
||||
@ -331,9 +332,14 @@ IpoCurve_setName (C_IpoCurve * self, PyObject * args)
|
||||
static PyObject *
|
||||
IpoCurve_Recalc (C_IpoCurve * self)
|
||||
{
|
||||
void testhandles_ipocurve (IpoCurve * icu);
|
||||
IpoCurve *icu = self->ipocurve;
|
||||
testhandles_ipocurve (icu);
|
||||
|
||||
/* testhandles_ipocurve (icu); */
|
||||
/* call calchandles_* instead of testhandles_* */
|
||||
/* I'm not sure this is a complete solution but since we do not */
|
||||
/* deal with curve handles right now, it seems ok */
|
||||
calchandles_ipocurve (icu);
|
||||
|
||||
Py_INCREF (Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user