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>2016-01-07 12:34:33 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-01-07 12:35:01 +0300
commit9e3ae79a5435f0d201b973667bba53d1da0d8c90 (patch)
tree908b92ee06ea7c71d646ef5ab5e60cec2810b584 /source/blender/blenkernel/intern/armature.c
parentc4fda6f7d076ffed5a55634031e623838a3d6192 (diff)
Fix access possibly uninitialized armature's bounding box flag
Diffstat (limited to 'source/blender/blenkernel/intern/armature.c')
-rw-r--r--source/blender/blenkernel/intern/armature.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index 0d757246b1c..655fe07984f 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -2191,8 +2191,10 @@ static void boundbox_armature(Object *ob)
BoundBox *bb;
float min[3], max[3];
- if (ob->bb == NULL)
+ if (ob->bb == NULL) {
ob->bb = MEM_mallocN(sizeof(BoundBox), "Armature boundbox");
+ ob->>bb->flag = 0;
+ }
bb = ob->bb;
INIT_MINMAX(min, max);