From e4bae2f30f1f342427c8f3fd63886124f7c4d922 Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Wed, 23 Oct 2024 12:10:22 +0200 Subject: [PATCH] Addons: Deprecate MMD modules. (#29698) * Addons: Deprecate MMD modules. * MMD: Update link to new repo. --- examples/jsm/animation/MMDAnimationHelper.js | 2 ++ examples/jsm/animation/MMDPhysics.js | 2 ++ examples/jsm/exporters/MMDExporter.js | 6 ++++++ examples/jsm/loaders/MMDLoader.js | 2 ++ 4 files changed, 12 insertions(+) diff --git a/examples/jsm/animation/MMDAnimationHelper.js b/examples/jsm/animation/MMDAnimationHelper.js index b24dea116a84fe..03c452efe4ff36 100644 --- a/examples/jsm/animation/MMDAnimationHelper.js +++ b/examples/jsm/animation/MMDAnimationHelper.js @@ -61,6 +61,8 @@ class MMDAnimationHelper { this.sharedPhysics = false; this.masterPhysics = null; + console.warn( 'THREE.MMDAnimationHelper: The module has been deprecated and will be removed with r172. Please migrate to https://github.com/takahirox/three-mmd-loader instead.' ); + } /** diff --git a/examples/jsm/animation/MMDPhysics.js b/examples/jsm/animation/MMDPhysics.js index 057090112e818b..8c06d800ceef71 100644 --- a/examples/jsm/animation/MMDPhysics.js +++ b/examples/jsm/animation/MMDPhysics.js @@ -68,6 +68,8 @@ class MMDPhysics { this._init( mesh, rigidBodyParams, constraintParams ); + console.warn( 'THREE.MMDPhysics: The module has been deprecated and will be removed with r172. Please migrate to https://github.com/takahirox/three-mmd-loader instead.' ); + } /** diff --git a/examples/jsm/exporters/MMDExporter.js b/examples/jsm/exporters/MMDExporter.js index bcef712e81b1b4..79258ad423e0dc 100644 --- a/examples/jsm/exporters/MMDExporter.js +++ b/examples/jsm/exporters/MMDExporter.js @@ -12,6 +12,12 @@ import { MMDParser } from '../libs/mmdparser.module.js'; class MMDExporter { + constructor() { + + console.warn( 'THREE.MMDExporter: The module has been deprecated and will be removed with r172. Please migrate to https://github.com/takahirox/three-mmd-loader instead.' ); + + } + /* TODO: implement // mesh -> pmd this.parsePmd = function ( object ) { diff --git a/examples/jsm/loaders/MMDLoader.js b/examples/jsm/loaders/MMDLoader.js index 2c5f84c87a2603..503b647be9d3e5 100644 --- a/examples/jsm/loaders/MMDLoader.js +++ b/examples/jsm/loaders/MMDLoader.js @@ -86,6 +86,8 @@ class MMDLoader extends Loader { this.meshBuilder = new MeshBuilder( this.manager ); this.animationBuilder = new AnimationBuilder(); + console.warn( 'THREE.MMDLoader: The module has been deprecated and will be removed with r172. Please migrate to https://github.com/takahirox/three-mmd-loader instead.' ); + } /**