浏览代码

Examples: Fix VolumeSlice.js

Mugen87 6 年之前
父节点
当前提交
7467d3d5b8
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      examples/js/misc/VolumeSlice.js
  2. 1 0
      examples/jsm/misc/VolumeSlice.js

+ 1 - 0
examples/js/misc/VolumeSlice.js

@@ -62,6 +62,7 @@ THREE.VolumeSlice = function ( volume, index, axis ) {
 	 * @member {THREE.Mesh} mesh The mesh ready to get used in the scene
 	 */
 	this.mesh = new THREE.Mesh( this.geometry, material );
+	this.mesh.matrixAutoUpdate = false;
 	/**
 	 * @member {Boolean} geometryNeedsUpdate If set to true, updateGeometry will be triggered at the next repaint
 	 */

+ 1 - 0
examples/jsm/misc/VolumeSlice.js

@@ -72,6 +72,7 @@ var VolumeSlice = function ( volume, index, axis ) {
 	 * @member {Mesh} mesh The mesh ready to get used in the scene
 	 */
 	this.mesh = new Mesh( this.geometry, material );
+	this.mesh.matrixAutoUpdate = false;
 	/**
 	 * @member {Boolean} geometryNeedsUpdate If set to true, updateGeometry will be triggered at the next repaint
 	 */