diff options
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 6 | ||||
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index ceb4a49882d..14f8fa0ad71 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -1182,7 +1182,7 @@ static void createTransArmatureVerts(TransInfo *t) } } else { - const float Z[3] = {0.0f, 0.0f, 1.0f}; + const float z_axis[3] = {0.0f, 0.0f, 1.0f}; if (ebo->flag & BONE_TIPSEL) { copy_v3_v3(td->iloc, ebo->tail); copy_v3_v3(td->center, (t->around == V3D_LOCAL) ? ebo->head : td->iloc); @@ -1199,7 +1199,7 @@ static void createTransArmatureVerts(TransInfo *t) if ((ebo->flag & BONE_ROOTSEL) == 0) { /* To fix roll, see comments in transform_generic.c::recalcData_objects() */ td->extra = ebo; - td->ival = ebo->roll - ED_rollBoneToVector(ebo, Z, false); + td->ival = ebo->roll - ED_rollBoneToVector(ebo, z_axis, false); } td->ext = NULL; @@ -1223,7 +1223,7 @@ static void createTransArmatureVerts(TransInfo *t) /* To fix roll, see comments in transform_generic.c::recalcData_objects() */ td->extra = ebo; - td->ival = ebo->roll - ED_rollBoneToVector(ebo, Z, false); + td->ival = ebo->roll - ED_rollBoneToVector(ebo, z_axis, false); td->ext = NULL; td->val = NULL; diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 26c907673f7..5128ee3c9b6 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -813,10 +813,10 @@ static void recalcData_objects(TransInfo *t) */ for (i = 0; i < t->total; i++, td++) { if (td->extra) { - const float Z[3] = {0.0f, 0.0f, 1.0f}; + const float z_axis[3] = {0.0f, 0.0f, 1.0f}; ebo = td->extra; - ebo->roll = td->ival + ED_rollBoneToVector(ebo, Z, false); + ebo->roll = td->ival + ED_rollBoneToVector(ebo, z_axis, false); } } } |