fix parsing errors

This commit is contained in:
RandomityGuy 2021-07-02 22:45:42 +05:30
parent 1c5f6c1470
commit f36ae0b9ab
3 changed files with 2 additions and 1 deletions

Binary file not shown.

View file

@ -409,6 +409,7 @@ class DtsObject extends GameObject {
var lines = text.split('\n'); var lines = text.split('\n');
var keyframes = []; var keyframes = [];
for (line in lines) { for (line in lines) {
line = StringTools.trim(line);
if (line.substr(0, 2) == "//") if (line.substr(0, 2) == "//")
continue; continue;
if (line == "") if (line == "")

View file

@ -60,7 +60,7 @@ class Sky extends Object {
var skyboxIndices = [3, 1, 2, 0, 4, 5]; var skyboxIndices = [3, 1, 2, 0, 4, 5];
for (i in 0...6) { for (i in 0...6) {
var line = lines[i]; var line = StringTools.trim(lines[i]);
var filenames = ResourceLoader.getFullNamesOf(dmlDirectory + '/' + line); var filenames = ResourceLoader.getFullNamesOf(dmlDirectory + '/' + line);
if (filenames.length == 0) { if (filenames.length == 0) {
skyboxImages.push(new BitmapData(128, 128)); skyboxImages.push(new BitmapData(128, 128));