Fix build errors due to Godot macro change
This commit is contained in:
parent
d70dfca8ea
commit
4820998c56
@ -18,13 +18,11 @@ void VoxelStream::emerge_block(Ref<VoxelBuffer> out_buffer, Vector3i origin_in_v
|
||||
const Variant *args[3] = { &arg1, &arg2, &arg3 };
|
||||
Variant::CallError err;
|
||||
script->call("emerge_block", args, 3, err);
|
||||
if (err.error != Variant::CallError::CALL_OK) {
|
||||
ERR_EXPLAIN("voxel_stream.cpp:emerge_block gave an error: " + String::num(err.error) +
|
||||
", Argument: " + String::num(err.argument) +
|
||||
", Expected type: " + Variant::get_type_name(err.expected));
|
||||
ERR_FAIL();
|
||||
// This had to be explicitely logged due to the usual GD debugger not working with threads
|
||||
}
|
||||
ERR_FAIL_COND_MSG(err.error != Variant::CallError::CALL_OK,
|
||||
"voxel_stream.cpp:emerge_block gave an error: " + String::num(err.error) +
|
||||
", Argument: " + String::num(err.argument) +
|
||||
", Expected type: " + Variant::get_type_name(err.expected));
|
||||
// This had to be explicitely logged due to the usual GD debugger not working with threads
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,13 +37,11 @@ void VoxelStream::immerge_block(Ref<VoxelBuffer> buffer, Vector3i origin_in_voxe
|
||||
const Variant *args[3] = { &arg1, &arg2, &arg3 };
|
||||
Variant::CallError err;
|
||||
script->call("immerge_block", args, 3, err);
|
||||
if (err.error != Variant::CallError::CALL_OK) {
|
||||
ERR_EXPLAIN("voxel_stream.cpp:immerge_block gave an error: " + String::num(err.error) +
|
||||
" Argument: " + String::num(err.argument) +
|
||||
" Expected type: " + Variant::get_type_name(err.expected));
|
||||
ERR_FAIL();
|
||||
// This had to be explicitely logged due to the usual GD debugger not working with threads
|
||||
}
|
||||
ERR_FAIL_COND_MSG(err.error != Variant::CallError::CALL_OK,
|
||||
"voxel_stream.cpp:immerge_block gave an error: " + String::num(err.error) +
|
||||
" Argument: " + String::num(err.argument) +
|
||||
" Expected type: " + Variant::get_type_name(err.expected));
|
||||
// This had to be explicitely logged due to the usual GD debugger not working with threads
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user