From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/lib/rdge/materials/material.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'js/lib/rdge/materials/material.js') diff --git a/js/lib/rdge/materials/material.js b/js/lib/rdge/materials/material.js index c273611b..7e1f2ec5 100755 --- a/js/lib/rdge/materials/material.js +++ b/js/lib/rdge/materials/material.js @@ -103,7 +103,7 @@ var Material = function GLMaterial( world ) { return this._materialNode; }; - // a material can be animated or not. default is not. + // a material can be animated or not. default is not. // Any material needing continuous rendering should override this method this.isAnimated = function() { return false; @@ -187,7 +187,7 @@ var Material = function GLMaterial( world ) { // get the current values; var propNames = [], propValues = [], propTypes = [], propLabels = []; this.getAllProperties(propNames, propValues, propTypes, propLabels); - + // allocate a new material var MaterialLibrary = require("js/models/materials-model").MaterialsModel; var newMat = MaterialLibrary.createMaterialByShaderName( this.getShaderName() ); @@ -221,7 +221,7 @@ var Material = function GLMaterial( world ) { case "vector2d": rtnVal = ((valType == "object") && (value.length >= 2)); break; - + case "vector3d": rtnVal = ((valType == "object") && (value.length >= 3)); break; @@ -243,7 +243,7 @@ var Material = function GLMaterial( world ) { catch(e) { console.log( "setting invalid material property: " + prop + ", value: " + value ); } - + // if (!rtnVal && (prop != 'color')) { // console.log( "invalid material property: " + prop + " : " + value ); // } @@ -360,7 +360,7 @@ var Material = function GLMaterial( world ) { return jObj; }; - + this.importJSON = function (jObj) { if (this.getShaderName() != jObj.material) throw new Error("ill-formed material"); this.setName(jObj.name); @@ -382,7 +382,7 @@ var Material = function GLMaterial( world ) { }; /////////////////////////////////////////////////////////////////////// - + /////////////////////////////////////////////////////////////////////// // Methods /////////////////////////////////////////////////////////////////////// -- cgit v1.2.3