diff --git a/src/game-lib-d3-texture.js b/src/game-lib-d3-texture.js index 25267df..6561ecd 100644 --- a/src/game-lib-d3-texture.js +++ b/src/game-lib-d3-texture.js @@ -74,6 +74,8 @@ GameLib.D3.Texture = function( this.graphics, image ); + } else { + return image; } }.bind(this) ); diff --git a/src/game-lib-system-gui.js b/src/game-lib-system-gui.js index 99e67ae..2a3a387 100644 --- a/src/game-lib-system-gui.js +++ b/src/game-lib-system-gui.js @@ -216,11 +216,11 @@ GameLib.System.GUI.prototype.onChange = function(property, subProperty, affected GameLib.System.GUI.prototype.controller = function(folder, object, property, subProperty, step, listen, affected, min, max) { if (GameLib.Utils.UndefinedOrNull(min)) { - min = -100; + min = -1000; } if (GameLib.Utils.UndefinedOrNull(max)) { - max = 100; + max = 1000; } if ( @@ -1114,7 +1114,7 @@ GameLib.System.GUI.prototype.buildControl = function(folder, componentTemplate, property === 'maxZ' || property === 'offsetX' ) { - controllers.push(folder.add(object, property, -100, 100, 0.01)); + controllers.push(folder.add(object, property, -1000, 1000, 0.01)); } else if ( property === 'widthSegments' || property === 'radiusSegments' ||