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:
Diffstat (limited to 'source/blender/blenkernel/intern/constraint.c')
-rw-r--r--source/blender/blenkernel/intern/constraint.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index 5639f00ee39..b8bfb002075 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -31,9 +31,10 @@
#include <stddef.h>
#include <string.h>
#include <math.h>
+#include <float.h>
#include "MEM_guardedalloc.h"
-#include "nla.h"
+//XXX #include "nla.h"
#include "BLI_blenlib.h"
#include "BLI_arithb.h"
@@ -68,8 +69,6 @@
#include "BPY_extern.h"
#endif
-#include "blendef.h"
-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -112,7 +111,7 @@ void copy_constraint_channels (ListBase *dst, ListBase *src)
bConstraintChannel *dchan, *schan;
dst->first = dst->last = NULL;
- duplicatelist(dst, src);
+ BLI_duplicatelist(dst, src);
for (dchan=dst->first, schan=src->first; dchan; dchan=dchan->next, schan=schan->next) {
dchan->ipo = copy_ipo(schan->ipo);
@@ -127,7 +126,7 @@ void clone_constraint_channels (ListBase *dst, ListBase *src)
bConstraintChannel *dchan, *schan;
dst->first = dst->last = NULL;
- duplicatelist(dst, src);
+ BLI_duplicatelist(dst, src);
for (dchan=dst->first, schan=src->first; dchan; dchan=dchan->next, schan=schan->next) {
id_us_plus((ID *)dchan->ipo);
@@ -1843,7 +1842,7 @@ static void pycon_copy (bConstraint *con, bConstraint *srccon)
bPythonConstraint *opycon = (bPythonConstraint *)srccon->data;
pycon->prop = IDP_CopyProperty(opycon->prop);
- duplicatelist(&pycon->targets, &opycon->targets);
+ BLI_duplicatelist(&pycon->targets, &opycon->targets);
}
static void pycon_new_data (void *cdata)
@@ -3372,7 +3371,7 @@ void copy_constraints (ListBase *dst, ListBase *src)
bConstraint *con, *srccon;
dst->first= dst->last= NULL;
- duplicatelist(dst, src);
+ BLI_duplicatelist(dst, src);
for (con=dst->first, srccon=src->first; con; srccon=srccon->next, con=con->next) {
bConstraintTypeInfo *cti= constraint_get_typeinfo(con);