Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gizmo fixes #6763

Merged
merged 11 commits into from
Jun 28, 2024
Prev Previous commit
Next Next commit
hoisted out guide angle color into constant
  • Loading branch information
kpal81xd committed Jun 28, 2024
commit 646887c5f93e326927d6566087991c08af2376d7
3 changes: 2 additions & 1 deletion src/extras/gizmo/rotate-gizmo.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const tmpQ2 = new Quat();
// constants
const FACING_THRESHOLD = 0.9;
const ROTATE_SCALE = 900;
const GUIDE_ANGLE_COLOR = new Color(0, 0, 0, 0.3);

/**
* Rotation gizmo.
Expand Down Expand Up @@ -91,7 +92,7 @@ class RotateGizmo extends TransformGizmo {
* @type {Color}
* @private
*/
_guideAngleStartColor = new Color(0, 0, 0, 0.3);
_guideAngleStartColor = GUIDE_ANGLE_COLOR.clone();

/**
* Internal vector for the start point of the guide line angle.
Expand Down