Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

clear loaded model data when entering load model step

Scott Petrovic48e4caba7169
diff --git a/src/Mesh2MotionEngine.ts b/src/Mesh2MotionEngine.ts
index e43fd31..00b8b6d 100644
--- a/src/Mesh2MotionEngine.ts
+++ b/src/Mesh2MotionEngine.ts
@@ -257,6 +257,7 @@ export class Mesh2MotionEngine {
if (this.process_step === ProcessStep.LoadModel) {
// reset the state in the case of coming back to this step
this.remove_imported_model()
+ this.load_model_step.clear_loaded_model_data()
this.load_model_step.begin()
}
else if (this.process_step === ProcessStep.LoadSkeleton) {