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:
authorJoshua Leung <aligorith@gmail.com>2007-01-31 00:43:01 +0300
committerJoshua Leung <aligorith@gmail.com>2007-01-31 00:43:01 +0300
commit3be758d1dbd100f98744258bc27a97eec5776b4e (patch)
tree4c81242c3485b35733e327eef28089f6c3ee2253 /source/blender/src/drawarmature.c
parent65f00ae3e0657d571f0094c7d6d700df06748e58 (diff)
== Armature Path-Drawing ==
This adds a little paranoia check for some values used by path drawing which may be uninitialised in older-files causing an infinite loop.
Diffstat (limited to 'source/blender/src/drawarmature.c')
-rw-r--r--source/blender/src/drawarmature.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/drawarmature.c b/source/blender/src/drawarmature.c
index 15e94ef2ff2..864e0dd397e 100644
--- a/source/blender/src/drawarmature.c
+++ b/source/blender/src/drawarmature.c
@@ -1747,6 +1747,8 @@ static void draw_pose_paths(Object *ob)
glPushMatrix();
glLoadMatrixf(G.vd->viewmat);
+ /* version patch here - cannot access frame info from file reading */
+ if (arm->pathsize == 0) arm->pathsize= 1;
stepsize = arm->pathsize;
for(pchan= ob->pose->chanbase.first; pchan; pchan= pchan->next) {