فهرست منبع

Merge branch 'master' of https://github.com/BabylonJS/Babylon.js

David Catuhe 8 سال پیش
والد
کامیت
4a58aa22f1
3فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 5 0
      Exporters/3ds Max/BabylonExport.Entities/BabylonPBRMaterial.cs
  2. 2 2
      src/Tools/babylon.database.ts
  3. 1 1
      src/Tools/babylon.tools.ts

+ 5 - 0
Exporters/3ds Max/BabylonExport.Entities/BabylonPBRMaterial.cs

@@ -209,5 +209,10 @@ namespace BabylonExport.Entities
             overloadedEmissive = new[] {1f, 1f, 1f };
             overloadedEmissive = new[] {1f, 1f, 1f };
             overloadedReflection = new[] { 1f, 1f, 1f };
             overloadedReflection = new[] { 1f, 1f, 1f };
         }
         }
+
+        public void SetCustomType(string type)
+        {
+            this.customType = type;
+        }
     }
     }
 }
 }

+ 2 - 2
src/Tools/babylon.database.ts

@@ -43,7 +43,7 @@ module BABYLON {
         }
         }
 
 
         static ReturnFullUrlLocation = (url: string): string => {
         static ReturnFullUrlLocation = (url: string): string => {
-            if (url.indexOf("http:/") === -1) {
+            if (url.indexOf("http:/") === -1 && url.indexOf("https:/") === -1) {
                 return (Database.parseURL(window.location.href) + url);
                 return (Database.parseURL(window.location.href) + url);
             }
             }
             else {
             else {
@@ -584,4 +584,4 @@ module BABYLON {
             }
             }
         }
         }
     }
     }
-}
+}

+ 1 - 1
src/Tools/babylon.tools.ts

@@ -304,7 +304,7 @@
                     case "function":
                     case "function":
                         var result = Tools.CorsBehavior(url);
                         var result = Tools.CorsBehavior(url);
                         if (result) {
                         if (result) {
-                            return result;
+                            img.crossOrigin = result;
                         }
                         }
                         break;
                         break;
                     case "string":
                     case "string":