beta.r3js.org
-=yb4f310 2018-01-16 10:24:57 +01:00
parent 820e44dd20
commit de5e80b80a
2 changed files with 16 additions and 8 deletions

View File

@ -794,8 +794,15 @@ GameLib.Utils.LowerUnderscore = function(name) {
return name.toLowerCase().replace(/\s+/, '_'); return name.toLowerCase().replace(/\s+/, '_');
}; };
GameLib.Utils.UpperCaseWordsSpaces = function(word) { GameLib.Utils.UpperCaseWordsSpaces = function(input) {
return word.replace(/[-_]/g, ' ').split(' ').reduce(
var word = input.replace(/[-_]/g, ' ');
word = word.replace(/\s+/, ' ');
var words = word.split(' ');
return words.reduce(
function(result, word) { function(result, word) {
result += word[0].toUpperCase() + word.substr(1); result += word[0].toUpperCase() + word.substr(1);
return result + ' '; return result + ' ';

View File

@ -286,6 +286,7 @@ GameLib.D3.Texture.prototype.updateInstance = function(property) {
if (property === 'flipY') { if (property === 'flipY') {
this.instance.flipY = this.flipY; this.instance.flipY = this.flipY;
this.instance.needsUpdate = true;
} }
if (property === 'encoding') { if (property === 'encoding') {