Skip to content

Commit

Permalink
Update FilamentProxy.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Feb 20, 2024
1 parent 092a269 commit 2a0237e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/cpp/FilamentProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jsi::Value FilamentProxy::get(jsi::Runtime& runtime, const jsi::PropNameID& prop
runtime, jsi::PropNameID::forUtf8(runtime, "loadModel"), 1,
[this](jsi::Runtime& runtime, const jsi::Value& thisValue, const jsi::Value* arguments, size_t count) -> jsi::Value {
if (count != 1) {
[[unlikely]];
throw jsi::JSError(runtime, "loadModel: Expected 1 argument(s), but received " + std::to_string(count) + "!");
}
std::string path = arguments[0].asString(runtime).utf8(runtime);
Expand Down

0 comments on commit 2a0237e

Please sign in to comment.