未验证 提交 78631216 编写于 作者: M Michael Herzog 提交者: GitHub

Merge pull request #18251 from Mugen87/dev29

Examples: Clean up.
......@@ -358,7 +358,7 @@ THREE.TrackballControls = function ( object, domElement ) {
_this.object.lookAt( _this.target );
if ( lastPosition.distanceToSquared( _this.object.position ) > EPS || lastZoom !== _this.object.zoom ) {
if ( lastPosition.distanceToSquared( _this.object.position ) > EPS || lastZoom !== _this.object.zoom ) {
_this.dispatchEvent( changeEvent );
......
......@@ -157,14 +157,12 @@ THREE.Projector = function () {
var uvs = [];
var object = null;
var material = null;
var normalMatrix = new THREE.Matrix3();
function setObject( value ) {
object = value;
material = object.material;
normalMatrix.getNormalMatrix( object.matrixWorld );
......
......@@ -366,7 +366,7 @@ var TrackballControls = function ( object, domElement ) {
_this.object.lookAt( _this.target );
if ( lastPosition.distanceToSquared( _this.object.position ) > EPS || lastZoom !== _this.object.zoom ) {
if ( lastPosition.distanceToSquared( _this.object.position ) > EPS || lastZoom !== _this.object.zoom ) {
_this.dispatchEvent( changeEvent );
......
......@@ -181,14 +181,12 @@ var Projector = function () {
var uvs = [];
var object = null;
var material = null;
var normalMatrix = new Matrix3();
function setObject( value ) {
object = value;
material = object.material;
normalMatrix.getNormalMatrix( object.matrixWorld );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册