Go to file
Ricky Curtice bd41d696de STORM-1920: Corrected bug where snap values would highlight that weren’t supposed to be highlighting. Did some more cleanup and documentation.
Also corrected a bug in Richard’s patch that resulted in the object scaling up when the mouse went the opposite direction from the scale.  The issue is that the vector length is an absolute value.  To allow for "negative" results to be found and discarded, I instead used a dot product with a parallel unit vector to get the signed magnitude - or, if you prefer, the mono-dimensional vector.

This bug only surfaced once the code made to actually work as intended in regards to the highlighting.  Turns out that if the snapped value was at 2, any axis that was showing values would highlight its "2" text - and the same for all other values.
To fix this, I used a simple enum and repurposed the property that tracked whether or not the cursor was in a snap regime.  Now it not only tracks whether or not the cursor is in a snap regime, but which one it is in.  This allowed the highlight render code to be able to differentiate which row was supposed to highlight and which did not.

A couple more duplicated math operations were reduced by rearranging the order of some variable definitions.  If at all possible, only do division once.  The result is much cleaner and easier to read code.
Several deprecated vector functions were updated to match their new versions.  If you are going to mark something deprecated, why not just take the time to go through and find all uses and clean it up!?
faceToUnitVector() was cleaned up to use the single-output design, matching cornerToUnitVector().
A mess of trailing whitespace was cleaned out.
Many more LLManipScale private variables are now documented - though I only documented those I understood fully while reading where they were created and how they were used.
2014-03-02 16:28:38 -08:00
debian
…
doc Merge 3.6.9 ShareStorm 2013-10-25 10:23:11 -07:00
etc Update Mac and Windows breakpad builds to latest 2013-03-29 07:50:08 -07:00
indra STORM-1920: Corrected bug where snap values would highlight that weren’t supposed to be highlighting. Did some more cleanup and documentation. 2014-03-02 16:28:38 -08:00
scripts Merge viewer-bear maint RC changes to get this build closer to the RC it will follow 2013-09-26 11:44:40 -07:00
.hgignore Add fmod.log to .hgignore 2013-05-21 09:14:51 -07:00
.hgtags Added tag 3.6.13-release for changeset 0d9b9e50f1a8 2014-01-08 18:45:48 -05:00
BuildParams add "A" test channel package 2013-12-17 16:42:01 -05:00
autobuild.xml merge changes for DRTVWR-336 2013-10-15 17:47:37 -04:00
build.sh improve build.sh searches for additional package installers 2013-12-18 14:53:27 -05:00