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/curve.c')
-rw-r--r--source/blender/blenkernel/intern/curve.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/curve.c b/source/blender/blenkernel/intern/curve.c
index 4d93f2cba05..022c31c00f6 100644
--- a/source/blender/blenkernel/intern/curve.c
+++ b/source/blender/blenkernel/intern/curve.c
@@ -48,6 +48,7 @@
#include "DNA_key_types.h"
#include "DNA_scene_types.h"
#include "DNA_vfont_types.h"
+#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "BKE_animsys.h"
@@ -255,7 +256,10 @@ void make_local_curve(Curve *cu)
if(cu->id.lib==NULL) return;
if(cu->id.us==1) {
- id_clear_lib_data(&bmain->curve, (ID *)cu);
+ cu->id.lib= NULL;
+ cu->id.flag= LIB_LOCAL;
+
+ new_id(&bmain->curve, (ID *)cu, NULL);
extern_local_curve(cu);
return;
}
@@ -268,7 +272,10 @@ void make_local_curve(Curve *cu)
}
if(local && lib==0) {
- id_clear_lib_data(&bmain->curve, (ID *)cu);
+ cu->id.lib= NULL;
+ cu->id.flag= LIB_LOCAL;
+
+ new_id(&bmain->curve, (ID *)cu, NULL);
extern_local_curve(cu);
}
else if(local && lib) {