Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2004-04-29 08:50:28 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-04-29 08:50:28 +0400
commit2609a608bbd3390e957f075b9940049cb1d0de5c (patch)
tree0324f76cba153eb1bd7797812cf1ae548286d44a
parent1e75dbc0a1f618f4bd0d9b984f5d34634933b37d (diff)
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.
-rw-r--r--source/blender/python/api2_2x/Ipocurve.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Ipocurve.c b/source/blender/python/api2_2x/Ipocurve.c
index c35236dfd7b..f3e8c3873e2 100644
--- a/source/blender/python/api2_2x/Ipocurve.c
+++ b/source/blender/python/api2_2x/Ipocurve.c
@@ -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;
}