Selaa lähdekoodia

Removed duplicate declaration, added needed declaration for meta

Daniel 9 vuotta sitten
vanhempi
commit
c4beb9759a
3 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  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 );
 
-		meta = {
+		var meta = {
 			geometries: {},
 			materials: {},
 			textures: {},

+ 1 - 1
editor/js/CmdRemoveObject.js

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

+ 2 - 2
editor/js/History.js

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