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/lattice.c')
-rw-r--r--source/blender/blenkernel/intern/lattice.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/lattice.c b/source/blender/blenkernel/intern/lattice.c
index ebf5492625b..84f9829a639 100644
--- a/source/blender/blenkernel/intern/lattice.c
+++ b/source/blender/blenkernel/intern/lattice.c
@@ -255,7 +255,9 @@ void make_local_lattice(Lattice *lt)
if(lt->id.lib==NULL) return;
if(lt->id.us==1) {
- id_clear_lib_data(&bmain->latt, (ID *)lt);
+ lt->id.lib= NULL;
+ lt->id.flag= LIB_LOCAL;
+ new_id(&bmain->latt, (ID *)lt, NULL);
return;
}
@@ -267,7 +269,9 @@ void make_local_lattice(Lattice *lt)
}
if(local && lib==0) {
- id_clear_lib_data(&bmain->latt, (ID *)lt);
+ lt->id.lib= NULL;
+ lt->id.flag= LIB_LOCAL;
+ new_id(&bmain->latt, (ID *)lt, NULL);
}
else if(local && lib) {
Lattice *ltn= copy_lattice(lt);