فهرست منبع

Removed duplicate declaration, added needed declaration for meta

Daniel 9 سال پیش
والد
کامیت
c4beb9759a
3فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      editor/js/CmdAddObject.js
  2. 1 1
      editor/js/CmdRemoveObject.js
  3. 2 2
      editor/js/History.js

+ 1 - 1
editor/js/CmdAddObject.js

@@ -43,7 +43,7 @@ CmdAddObject.prototype = {
 
 
 		this.object.updateMatrixWorld( true );
 		this.object.updateMatrixWorld( true );
 
 
-		meta = {
+		var meta = {
 			geometries: {},
 			geometries: {},
 			materials: {},
 			materials: {},
 			textures: {},
 			textures: {},

+ 1 - 1
editor/js/CmdRemoveObject.js

@@ -69,7 +69,7 @@ CmdRemoveObject.prototype = {
 
 
 		this.object.updateMatrixWorld( true );
 		this.object.updateMatrixWorld( true );
 
 
-		meta = {
+		var meta = {
 			geometries: {},
 			geometries: {},
 			materials: {},
 			materials: {},
 			textures: {},
 			textures: {},

+ 2 - 2
editor/js/History.js

@@ -97,7 +97,7 @@ History.prototype = {
 
 
 		if ( this.undos.length > 0 ) {
 		if ( this.undos.length > 0 ) {
 
 
-			var cmd = this.undos.pop();
+			cmd = this.undos.pop();
 
 
 			if ( cmd.inMemory === false ) {
 			if ( cmd.inMemory === false ) {
 
 
@@ -132,7 +132,7 @@ History.prototype = {
 
 
 		if ( this.redos.length > 0 ) {
 		if ( this.redos.length > 0 ) {
 
 
-			var cmd = this.redos.pop();
+			cmd = this.redos.pop();
 
 
 			if ( cmd.inMemory === false ) {
 			if ( cmd.inMemory === false ) {