MCPcopy Create free account
hub / github.com/defold/defold / ThrowModelLoadException

Function ThrowModelLoadException

engine/modelc/src/modelimporter_jni.cpp:550–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548} // namespace
549
550static void ThrowModelLoadException(JNIEnv* env, const char* message)
551{
552 const char* msg = (message && message[0]) ? message : "Failed to load model";
553 jclass jcls = env->FindClass(JAVA_PACKAGE_NAME "/ModelImporterJni$ModelException");
554 if (!jcls)
555 {
556 env->ExceptionClear();
557 dmLogError("Failed to find ModelImporterJni.ModelException class");
558 return;
559 }
560 env->ThrowNew(jcls, msg);
561 env->DeleteLocalRef(jcls);
562}
563
564static void ThrowModelLoadExceptionFromScene(JNIEnv* env, dmModelImporter::Scene* scene, const char* fallback_message)
565{

Callers 2

LoadFromBufferInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected