You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Misc improvements to the GodotPlugin API
- Add overload method for `GodotPlugin#emitSignal(...)` - Allow passing `null` values as signal arguments
This commit is contained in:
committed by
Fredia Huya-Kouadio
parent
caefb0f1c1
commit
b9c3b1d4c0
@@ -128,7 +128,6 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_plugin_GodotPlugin_nativeEmitS
|
||||
|
||||
for (int i = 0; i < count; i++) {
|
||||
jobject j_param = env->GetObjectArrayElement(j_signal_params, i);
|
||||
ERR_FAIL_NULL(j_param);
|
||||
memnew_placement(&variant_params[i], Variant(_jobject_to_variant(env, j_param)));
|
||||
args[i] = &variant_params[i];
|
||||
env->DeleteLocalRef(j_param);
|
||||
|
||||
Reference in New Issue
Block a user