Open dsnopek opened 1 month ago
Fixes https://github.com/godotengine/godot-cpp/issues/1615
It's not an error to receive a null pointer for a Ref<T> - that's just how null reference values are encoded - so we shouldn't print an error message. This switches away from ERR_FAIL_NULL_V() to just a normal if statement.
Ref<T>
ERR_FAIL_NULL_V()
if
Discussed at the GDExtension meeting and folks thought it looked good.
Fixes https://github.com/godotengine/godot-cpp/issues/1615
It's not an error to receive a null pointer for a
Ref<T>
- that's just how null reference values are encoded - so we shouldn't print an error message. This switches away fromERR_FAIL_NULL_V()
to just a normalif
statement.