sohamkamani / three-object-loader

[DEPRECATED] NodeJS wrapper for Three.js' OBJLoader function
30 stars 31 forks source link

Make it possible to set debug=false #16

Open danvk opened 7 years ago

danvk commented 7 years ago

On line 59, you call scope.parse with a single argument:

      loader.load(url, function (text) {

        onLoad(scope.parse(text));

      }, onProgress, onError);

but then later:

    function (text, debug) {
      if (typeof(debug) === 'undefined') {
        debug = true;
      }

So debug is always true. I'd prefer not to see line noise in my console. Can we either remove this (it doesn't exist in the upstream three.js repo) or optionalize it? Thanks.