Skip to content
Snippets Groups Projects
Commit 2609a608 authored by Stephen Swaney's avatar Stephen Swaney
Browse files

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.
parent 1e75dbc0
Branches
Tags
No related merge requests found
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <BKE_global.h> #include <BKE_global.h>
#include <BKE_object.h> #include <BKE_object.h>
#include <BKE_library.h> #include <BKE_library.h>
#include <BKE_ipo.h>
#include <BLI_blenlib.h> #include <BLI_blenlib.h>
#include "constant.h" #include "constant.h"
...@@ -331,9 +332,14 @@ IpoCurve_setName (C_IpoCurve * self, PyObject * args) ...@@ -331,9 +332,14 @@ IpoCurve_setName (C_IpoCurve * self, PyObject * args)
static PyObject * static PyObject *
IpoCurve_Recalc (C_IpoCurve * self) IpoCurve_Recalc (C_IpoCurve * self)
{ {
void testhandles_ipocurve (IpoCurve * icu);
IpoCurve *icu = self->ipocurve; 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); Py_INCREF (Py_None);
return Py_None; return Py_None;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment