Skip to content

Commit d26b492

Browse files
committed
Addons: Deprecate MMD modules.
1 parent 0ba7073 commit d26b492

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

examples/jsm/animation/MMDAnimationHelper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class MMDAnimationHelper {
6161
this.sharedPhysics = false;
6262
this.masterPhysics = null;
6363

64+
console.warn( 'THREE.MMDAnimationHelper: The module has been deprecated and will be removed with r172. Please migrate to __externalMMD_ instead.' );
65+
6466
}
6567

6668
/**

examples/jsm/animation/MMDPhysics.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ class MMDPhysics {
6868

6969
this._init( mesh, rigidBodyParams, constraintParams );
7070

71+
console.warn( 'THREE.MMDPhysics: The module has been deprecated and will be removed with r172. Please migrate to __externalMMD_ instead.' );
72+
7173
}
7274

7375
/**

examples/jsm/exporters/MMDExporter.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ import { MMDParser } from '../libs/mmdparser.module.js';
1212

1313
class MMDExporter {
1414

15+
constructor() {
16+
17+
console.warn( 'THREE.MMDExporter: The module has been deprecated and will be removed with r172. Please migrate to __externalMMD_ instead.' );
18+
19+
}
20+
1521
/* TODO: implement
1622
// mesh -> pmd
1723
this.parsePmd = function ( object ) {

examples/jsm/loaders/MMDLoader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ class MMDLoader extends Loader {
8686
this.meshBuilder = new MeshBuilder( this.manager );
8787
this.animationBuilder = new AnimationBuilder();
8888

89+
console.warn( 'THREE.MMDLoader: The module has been deprecated and will be removed with r172. Please migrate to __externalMMD_ instead.' );
90+
8991
}
9092

9193
/**

0 commit comments

Comments
 (0)