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:
authorCampbell Barton <ideasman42@gmail.com>2010-09-20 07:28:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-20 07:28:02 +0400
commitd88ba47eb9851d48006142ae988ecd5a99345702 (patch)
treedf80ebf5449df09cc92d7e56b706bcc342c92a76 /source/blender/editors/transform/transform_manipulator.c
parentc64a9d8d41c118f2c4b40f2829873c03c14086de (diff)
bugfix [#23909] Calculating Depth
- depth was incorrect, changes since 2.4x. - minor edit to transform manipulator, no functional change.
Diffstat (limited to 'source/blender/editors/transform/transform_manipulator.c')
-rw-r--r--source/blender/editors/transform/transform_manipulator.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c
index 396cb15e61a..51698c27b37 100644
--- a/source/blender/editors/transform/transform_manipulator.c
+++ b/source/blender/editors/transform/transform_manipulator.c
@@ -562,17 +562,12 @@ void test_manipulator_axis(const bContext *C)
static float screen_aligned(RegionView3D *rv3d, float mat[][4])
{
- float vec[3], size;
-
- VECCOPY(vec, mat[0]);
- size= normalize_v3(vec);
-
glTranslatef(mat[3][0], mat[3][1], mat[3][2]);
/* sets view screen aligned */
glRotatef( -360.0f*saacos(rv3d->viewquat[0])/(float)M_PI, rv3d->viewquat[1], rv3d->viewquat[2], rv3d->viewquat[3]);
- return size;
+ return len_v3(mat[0]); /* draw scale */
}