Browse Source

Merge pull request #14230 from takahirox/FixUpdateMatrixWorldTest

Fix .updateMatrixWorld() benchmark test
Mr.doob 7 năm trước cách đây
mục cha
commit
92c393ead6

+ 3 - 3
test/benchmark/core/UpdateMatrixWorld.js

@@ -8,9 +8,9 @@
   rotation.setFromAxisAngle(new THREE.Vector3(0, 1, 0), Math.PI / 8);
   rotation.setFromAxisAngle(new THREE.Vector3(0, 1, 0), Math.PI / 8);
   var createLocallyOffsetChild = function() {
   var createLocallyOffsetChild = function() {
     var child = new THREE.Object3D();
     var child = new THREE.Object3D();
-    child.position = position;
-    child.scale = scale;
-    child.rotation = rotation;
+    child.position.copy(position);
+    child.scale.copy(scale);
+    child.rotation.copy(rotation);
     return child;
     return child;
   };
   };