Update GenerateGridVerts.js

This commit is contained in:
Richard Davey 2020-10-09 17:20:40 +01:00
parent 2801d3d804
commit 5639862010

View file

@ -48,7 +48,7 @@ var GenerateGridVerts = function (config)
var mesh = GetFastValue(config, 'mesh');
var texture = GetFastValue(config, 'texture', (mesh) ? mesh.texture : null);
var frame = GetFastValue(config, 'frame');
var width = GetFastValue(config, 'width', 128);
var width = GetFastValue(config, 'width', 1);
var height = GetFastValue(config, 'height', width);
var widthSegments = GetFastValue(config, 'widthSegments', 1);
var heightSegments = GetFastValue(config, 'heightSegments', widthSegments);