From f0bbd7688bcf2c6b8f749c7c6061ac09640ab08c Mon Sep 17 00:00:00 2001 From: hwc487 Date: Mon, 4 Jun 2012 11:35:17 -0700 Subject: Avoid throwing shader errors in the console for 'color' property at a base class level. --- js/lib/rdge/materials/material.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 b9de9988..856513e2 100755 --- a/js/lib/rdge/materials/material.js +++ b/js/lib/rdge/materials/material.js @@ -210,7 +210,7 @@ var Material = function GLMaterial( world ) { console.log( "setting invalid material property: " + prop + ", value: " + value ); } - if (!rtnVal) { + if (!rtnVal && (prop != 'color')) { console.log( "invalid material property: " + prop + " : " + value ); } -- cgit v1.2.3