Browse Source

Change glb extension, it is registered as .glb in SceneLoader._registeredPlugins

Carlos Landeras Martínez 7 năm trước cách đây
mục cha
commit
300183f522

+ 1 - 1
src/Gamepad/Controllers/babylon.windowsMotionController.ts

@@ -204,7 +204,7 @@ module BABYLON {
             let filename: string;
 
             // Checking if GLB loader is present
-            if (SceneLoader.IsPluginForExtensionAvailable("glb")) {
+            if (SceneLoader.IsPluginForExtensionAvailable(".glb")) {
                 // Determine the device specific folder based on the ID suffix
                 let device = 'default';
                 if (this.id && !forceDefault) {