Explorar o código

Addons: Deprecate MMD modules. (#29698)

* Addons: Deprecate MMD modules.

* MMD: Update link to new repo.
Michael Herzog hai 1 ano
pai
achega
e4bae2f30f

+ 2 - 0
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.' );
+
 	}
 
 	/**

+ 2 - 0
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.' );
+
 	}
 
 	/**

+ 6 - 0
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 ) {

+ 2 - 0
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.' );
+
 	}
 
 	/**

粤ICP备19079148号