Browse Source

Beautify code

noalak 5 years ago
parent
commit
9ccdc869cf
2 changed files with 2 additions and 2 deletions
  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) => {
         let onAssetContainerLoaded = (container: AssetContainer) => {
-            container.MergeAnimationsTo(scene, targetConverter);
+            container.mergeAnimationsTo(scene, targetConverter);
 
 
             container.dispose();
             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 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)
      * @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) {
         if (!scene) {
             Logger.Error("No scene available to merge animations to");
             Logger.Error("No scene available to merge animations to");
             return;
             return;