Forráskód Böngészése

Merge pull request #8181 from Wilt/patch-1

Return geometry after calling applyMatrix()
Mr.doob 9 éve
szülő
commit
e74893119c
2 módosított fájl, 4 hozzáadás és 0 törlés
  1. 2 0
      src/core/BufferGeometry.js
  2. 2 0
      src/core/Geometry.js

+ 2 - 0
src/core/BufferGeometry.js

@@ -142,6 +142,8 @@ THREE.BufferGeometry.prototype = {
 
 		}
 
+		return this;
+
 	},
 
 	rotateX: function () {

+ 2 - 0
src/core/Geometry.js

@@ -87,6 +87,8 @@ THREE.Geometry.prototype = {
 		this.verticesNeedUpdate = true;
 		this.normalsNeedUpdate = true;
 
+		return this;
+
 	},
 
 	rotateX: function () {