Remove duplicated APIs

This commit is contained in:
daemyung jang
2022-01-19 09:30:31 +09:00
committed by Philip Rideout
parent 3e3fc76688
commit 4b572cf065
9 changed files with 6 additions and 46 deletions

View File

@@ -208,17 +208,6 @@ Java_com_google_android_filament_gltfio_FilamentAsset_nGetAnimator(JNIEnv* , jcl
return (jlong) asset->getAnimator();
}
extern "C" JNIEXPORT void JNICALL
Java_com_google_android_filament_gltfio_FilamentAsset_nSetMorphWeights(JNIEnv* env, jclass,
jlong nativeAsset, int entityId, jfloatArray weights_) {
FilamentAsset* asset = (FilamentAsset*) nativeAsset;
Entity entity = Entity::import(entityId);
jfloat* weights = env->GetFloatArrayElements(weights_, NULL);
jsize count = env->GetArrayLength(weights_);
asset->setMorphWeights(entity, weights, count);
env->ReleaseFloatArrayElements(weights_, weights, 0);
}
extern "C" JNIEXPORT int JNICALL
Java_com_google_android_filament_gltfio_FilamentAsset_nGetMorphTargetCount(JNIEnv* , jclass,
jlong nativeAsset, int entityId) {