浏览代码

Beautify code

noalak 5 年之前
父节点
当前提交
9ccdc869cf
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/Loading/sceneLoader.ts
  2. 1 1
      src/assetContainer.ts

+ 1 - 1
src/Loading/sceneLoader.ts

@@ -1022,7 +1022,7 @@ export class SceneLoader {
         }
 
         let onAssetContainerLoaded = (container: AssetContainer) => {
-            container.MergeAnimationsTo(scene, targetConverter);
+            container.mergeAnimationsTo(scene, targetConverter);
 
             container.dispose();
 

+ 1 - 1
src/assetContainer.ts

@@ -464,7 +464,7 @@ export class AssetContainer extends AbstractScene {
      * @param scene is the instance of BABYLON.Scene to append to (default: last created scene)
      * @param targetConverter defines a function used to convert animation targets from the asset container to the scene (default: search node by name)
      */
-    public MergeAnimationsTo(scene: Nullable<Scene> = EngineStore.LastCreatedScene, targetConverter: Nullable<(target: any) => Nullable<Node>> = null): void {
+    public mergeAnimationsTo(scene: Nullable<Scene> = EngineStore.LastCreatedScene, targetConverter: Nullable<(target: any) => Nullable<Node>> = null): void {
         if (!scene) {
             Logger.Error("No scene available to merge animations to");
             return;