mage-engine 3.23.4 → 3.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mage.js +6 -4
- package/package.json +1 -1
package/dist/mage.js
CHANGED
|
@@ -57777,7 +57777,7 @@ function applyMiddleware() {
|
|
|
57777
57777
|
|
|
57778
57778
|
var thunk = createThunkMiddleware();
|
|
57779
57779
|
thunk.withExtraArgument = createThunkMiddleware;var name$1 = "mage-engine";
|
|
57780
|
-
var version$1 = "3.23.
|
|
57780
|
+
var version$1 = "3.23.5";
|
|
57781
57781
|
var description = "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.";
|
|
57782
57782
|
var main = "dist/mage.js";
|
|
57783
57783
|
var author$1 = {
|
|
@@ -74753,7 +74753,7 @@ var buildFBXLoader = function buildFBXLoader() {
|
|
|
74753
74753
|
textureLoader.setPath(this.resourcePath || texturePath || path);
|
|
74754
74754
|
}
|
|
74755
74755
|
|
|
74756
|
-
return new FBXTreeParser(textureLoader, this.manager).parse(fbxTree);
|
|
74756
|
+
return new FBXTreeParser(textureLoader, this.manager, this.options).parse(fbxTree);
|
|
74757
74757
|
}
|
|
74758
74758
|
}]);
|
|
74759
74759
|
|
|
@@ -74762,11 +74762,12 @@ var buildFBXLoader = function buildFBXLoader() {
|
|
|
74762
74762
|
|
|
74763
74763
|
|
|
74764
74764
|
var FBXTreeParser = /*#__PURE__*/function () {
|
|
74765
|
-
function FBXTreeParser(textureLoader, manager) {
|
|
74765
|
+
function FBXTreeParser(textureLoader, manager, options) {
|
|
74766
74766
|
_classCallCheck(this, FBXTreeParser);
|
|
74767
74767
|
|
|
74768
74768
|
this.textureLoader = textureLoader;
|
|
74769
74769
|
this.manager = manager;
|
|
74770
|
+
this.options = options;
|
|
74770
74771
|
}
|
|
74771
74772
|
|
|
74772
74773
|
_createClass(FBXTreeParser, [{
|
|
@@ -74959,12 +74960,13 @@ var buildFBXLoader = function buildFBXLoader() {
|
|
|
74959
74960
|
}, {
|
|
74960
74961
|
key: "loadTexture",
|
|
74961
74962
|
value: function loadTexture(textureNode, images) {
|
|
74963
|
+
var textureOption = this.options.texture;
|
|
74962
74964
|
var fileName;
|
|
74963
74965
|
var currentPath = this.textureLoader.path;
|
|
74964
74966
|
var children = connections.get(textureNode.id).children;
|
|
74965
74967
|
|
|
74966
74968
|
if (children !== undefined && children.length > 0 && images[children[0].ID] !== undefined) {
|
|
74967
|
-
fileName = images[children[0].ID];
|
|
74969
|
+
fileName = textureOption instanceof Object ? textureOption[children[0].ID] : textureOption || images[children[0].ID];
|
|
74968
74970
|
|
|
74969
74971
|
if (fileName.indexOf("blob:") === 0 || fileName.indexOf("data:") === 0) {
|
|
74970
74972
|
this.textureLoader.setPath(undefined);
|