== 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.
This commit is contained in:
Joshua Leung
2007-01-30 21:43:01 +00:00
parent 65f00ae3e0
commit 3be758d1db

View File

@@ -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) {