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:
authorSergey Sharybin <sergey.vfx@gmail.com>2010-10-02 15:39:11 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2010-10-02 15:39:11 +0400
commit4c63215e38aa57d3bde4cb58eff74afafb779a21 (patch)
treefe70f6dfd6f8425d492ec7db93b71b72dd8a143f /source/blender/blenloader
parent3716e6a176dfc93e02098a8c037b4c83d17ee361 (diff)
Fix #24094: Multiresolution sculpt mode undo crash
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 6dfe6736528..f24de9c605d 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -4100,8 +4100,10 @@ static void direct_link_object(FileData *fd, Object *ob)
ob->gpulamp.first= ob->gpulamp.last= NULL;
link_list(fd, &ob->pc_ids);
- if(ob->sculpt)
+ if(ob->sculpt) {
ob->sculpt= MEM_callocN(sizeof(SculptSession), "reload sculpt session");
+ ob->sculpt->ob= ob;
+ }
}
/* ************ READ SCENE ***************** */