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:
authorCampbell Barton <ideasman42@gmail.com>2016-03-04 13:50:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-03-04 13:50:54 +0300
commitf2c40ca9f01d44871b055afdcd0434b2a8309927 (patch)
tree9349b54b9c402fbda7d8ea1432ea9cefbd7c9bd2 /source/blender/blenkernel/intern/armature.c
parentb8417501abefa3332254564078ac7b93b875d7b8 (diff)
Fix uninitialized memory use lattice-boundbox
Many other places weren't clearing boundbox dirty flag after calculation.
Diffstat (limited to 'source/blender/blenkernel/intern/armature.c')
-rw-r--r--source/blender/blenkernel/intern/armature.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index 74fffdd664f..54fe98940aa 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -2221,8 +2221,7 @@ static void boundbox_armature(Object *ob)
float min[3], max[3];
if (ob->bb == NULL) {
- ob->bb = MEM_mallocN(sizeof(BoundBox), "Armature boundbox");
- ob->bb->flag = 0;
+ ob->bb = MEM_callocN(sizeof(BoundBox), "Armature boundbox");
}
bb = ob->bb;
@@ -2233,6 +2232,8 @@ static void boundbox_armature(Object *ob)
}
BKE_boundbox_init_from_minmax(bb, min, max);
+
+ bb->flag &= ~BOUNDBOX_DIRTY;
}
BoundBox *BKE_armature_boundbox_get(Object *ob)