getMorphTargetNames method

  1. @JSExport()
JSPromise<JSArray<JSString>> getMorphTargetNames(
  1. ThermionEntity entity,
  2. ThermionEntity childEntity
)

Implementation

@JSExport()
JSPromise<JSArray<JSString>> getMorphTargetNames(
    ThermionEntity entity, ThermionEntity childEntity) {
  var morphTargetNames = viewer
      .getMorphTargetNames(entity, childEntity)
      .then((v) => v.map((s) => s.toJS).toList().toJS);
  return morphTargetNames.toJS;
}