Parenthisized a #define to make it safer, adjusted some notes (and added a TODO) around some extremely obscure code that needs further attention but which is outside this scope.

meow-7.2.2
Ricky Curtice 2011-04-04 10:24:43 -07:00
parent 9bac314ba0
commit ca186a6401
3 changed files with 6 additions and 6 deletions

View File

@ -237,7 +237,7 @@ Coaldust Numbers
VWR-1095
Cron Stardust
VWR-10579
VWR-25126
STORM-1075
Cypren Christenson
STORM-417
Dale Glass

View File

@ -34,7 +34,7 @@
#define ANGLE (3.14159265f / 2.0f)
#define APPROX_EQUAL(a, b) dist_vec_squared((a),(b)) < 1e-10
#define APPROX_EQUAL(a, b) (dist_vec_squared((a),(b)) < 1e-10)
namespace tut
{

View File

@ -6589,11 +6589,11 @@ bool LLSelectMgr::selectionMove(const LLVector3& displ,
// note the use of fsqrtf, this was used in the definition of dist_vec() and is therefore re-used here
F32 min_dist = fsqrtf(min_dist_squared);
// factor the distance inside the displacement vector. This will get us
// factor the distance into the displacement vector. This will get us
// equally visible movements for both close and far away selections.
F32 min_dist_factored = sqrt(min_dist) / 2;
displ_global.setVec(displ.mV[0]*min_dist_factored,
displ.mV[1]*min_dist_factored,
F32 min_dist_factored = sqrt(min_dist) / 2; // FIXME: this variable name doesn't state its true meaning.
displ_global.setVec(displ.mV[0]*min_dist_factored,
displ.mV[1]*min_dist_factored,
displ.mV[2]*min_dist_factored);
// equates to: Displ_global = Displ * M_cam_axes_in_global_frame