Skip to content

Commit dc3cd4a

Browse files
committed
Fix three.js
1 parent 1ee2f30 commit dc3cd4a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

electron_demo/turtle_tf2/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<!DOC <meta http-equiv="Content-Security-Policy"
2-
content="default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';">PE html>
1+
<!DOCTYPE html>
32
<html>
43

54
<head>

electron_demo/turtle_tf2/orbit-controls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ THREE.OrbitControls = function (object, domElement) {
105105
object.up,
106106
new THREE.Vector3(0, 1, 0)
107107
);
108-
var quatInverse = quat.clone().inverse();
108+
var quatInverse = new THREE.Quaternion().copy(quat).invert();
109109

110110
var lastPosition = new THREE.Vector3();
111111
var lastQuaternion = new THREE.Quaternion();

0 commit comments

Comments
 (0)