diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-09-17 10:11:06 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-09-17 10:11:06 +0400 |
commit | 672a66905b0aca8a7099de3743d1e42059c4fc98 (patch) | |
tree | 1c2af82bce01b8f676ebf908a1ec710bb675dba8 /source/blender/python/api2_2x/Pose.c | |
parent | a48f15e124ef441d5f644f49899e4939aa13dff3 (diff) |
Patch/Bugfix #7334 by 'gsr b3d:
Some more compiler warning fixes. Some of these seem to be specific to GCC 4.1
Diffstat (limited to 'source/blender/python/api2_2x/Pose.c')
-rw-r--r-- | source/blender/python/api2_2x/Pose.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c index ed25c15c9f5..47ae96b2286 100644 --- a/source/blender/python/api2_2x/Pose.c +++ b/source/blender/python/api2_2x/Pose.c @@ -693,9 +693,12 @@ static int PoseBone_setLocalMatrix(BPy_PoseBone *self, PyObject *value, void *cl } //get loc - if (matsize == 4){ + if (matsize == 4) { VECCOPY(loc, matrix->matrix[3]); } + else { + loc[0]= loc[1]= loc[2]= 0.0f; + } //copy new attributes VECCOPY(self->posechannel->size, size); |