Jump to content

Error in BABYLON.FilesInput : variable not use


Dad72
 Share

Recommended Posts

There was a small error in this function: (files: babylon.filesInput.js , line : 15)

BABYLON.FilesInput = function (p_engine, p_scene, p_canvas, p_sceneLoadedCallback,                                   p_progressCallback, p_additionnalRenderLoopLogicCallback, p_textureLoadingCallback, p_startingProcessingFilesCallback) {        that = this;        this.engine = p_engine;        this.canvas = p_canvas;        this.originalScene = p_scene; // ERROR originalScene not use        this.sceneLoadedCallback = p_sceneLoadedCallback;        this.progressCallback = p_progressCallback;        this.additionnalRenderLoopLogicCallback = p_additionnalRenderLoopLogicCallback;        this.textureLoadingCallback = p_textureLoadingCallback;        this.startingProcessingFilesCallback = p_startingProcessingFilesCallback;        this.engine.runRenderLoop(renderFunction);    };

in the variable :

this.originalScene = p_scene;

 

replace :

this.currentScene = p_scene;

 

Function fixe:

   /// Register to core BabylonJS object: engine, scene, rendering canvas, callback function when the scene will be loaded,    /// loading progress callback and optionnal addionnal logic to call in the rendering loop    BABYLON.FilesInput = function (p_engine, p_scene, p_canvas, p_sceneLoadedCallback,                                   p_progressCallback, p_additionnalRenderLoopLogicCallback, p_textureLoadingCallback, p_startingProcessingFilesCallback) {        that = this;        this.engine = p_engine;        this.canvas = p_canvas;        this.currentScene = p_scene;        this.sceneLoadedCallback = p_sceneLoadedCallback;        this.progressCallback = p_progressCallback;        this.additionnalRenderLoopLogicCallback = p_additionnalRenderLoopLogicCallback;        this.textureLoadingCallback = p_textureLoadingCallback;        this.startingProcessingFilesCallback = p_startingProcessingFilesCallback;        this.engine.runRenderLoop(renderFunction);    };
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...