Parcourir la source

* WebGLRenderer: update camera and object matrices if autoUpdateMatrix == true

Mr.doob il y a 15 ans
Parent
commit
369a8661dc
3 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 0 0
      build/Three.js
  2. 0 0
      build/ThreeDebug.js
  3. 2 0
      src/renderers/WebGLRenderer.js

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
build/Three.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
build/ThreeDebug.js


+ 2 - 0
src/renderers/WebGLRenderer.js

@@ -161,6 +161,8 @@ THREE.WebGLRenderer = function () {
 
 				}
 
+				camera.autoUpdateMatrix && camera.updateMatrix();
+				object.autoUpdateMatrix && object.updateMatrix();
 
 				viewMatrix.multiply( camera.matrix, object.matrix );
 

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff