Skip to content

Commit

Permalink
fix: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
cptbtptpbcptdtptp committed Nov 29, 2023
1 parent d90ae70 commit f20423a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/gizmo/src/Rotate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export class RotateControl extends GizmoComponent {
startHelperRenderer.castShadows = false;
startHelperRenderer.mesh = this._startLineMesh;
startHelperRenderer.setMaterial(Utils.yellowMaterial);
startHelperRenderer.priority = 90;

// rotate end line
this._endLineHelperEntity = this._gizmoRotateHelperEntity.createChild("lineHelperE");
Expand All @@ -161,6 +162,7 @@ export class RotateControl extends GizmoComponent {
endHelperRenderer.castShadows = false;
endHelperRenderer.mesh = this._endLineMesh;
endHelperRenderer.setMaterial(Utils.yellowMaterial);
endHelperRenderer.priority = 90;

// rotate plane
this._rotateHelperPlaneEntity = this._gizmoRotateHelperEntity.createChild("rotateHelperPlane");
Expand All @@ -171,6 +173,7 @@ export class RotateControl extends GizmoComponent {
// @ts-ignore
this._rotateHelperPlaneMesh._enableVAO = false;
planeHelperRenderer.setMaterial(Utils.rotatePlaneMaterial);
planeHelperRenderer.priority = 90;
this._rotateHelperPlaneEntity.isActive = false;
}

Expand Down

0 comments on commit f20423a

Please sign in to comment.