|
@@ -3957,11 +3957,11 @@ module BABYLON {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Gets a morph target using a given id (if many are found, this function will pick the last one)
|
|
|
|
|
|
+ * Gets a morph target using a given id (if many are found, this function will pick the first one)
|
|
* @param id defines the id to search for
|
|
* @param id defines the id to search for
|
|
* @return the found morph target or null if not found at all.
|
|
* @return the found morph target or null if not found at all.
|
|
*/
|
|
*/
|
|
- public getMorphTargetByID(id: string): Nullable<MorphTarget> {
|
|
|
|
|
|
+ public getMorphTargetById(id: string): Nullable<MorphTarget> {
|
|
for (let managerIndex = 0; managerIndex < this.morphTargetManagers.length; ++managerIndex) {
|
|
for (let managerIndex = 0; managerIndex < this.morphTargetManagers.length; ++managerIndex) {
|
|
const morphTargetManager = this.morphTargetManagers[managerIndex];
|
|
const morphTargetManager = this.morphTargetManagers[managerIndex];
|
|
for (let index = 0; index < morphTargetManager.numTargets; ++index) {
|
|
for (let index = 0; index < morphTargetManager.numTargets; ++index) {
|