You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Use append_ instead of parse_ for String methods.
This commit is contained in:
@@ -312,7 +312,7 @@ Ref<Resource> ResourceFormatLoaderShader::load(const String &p_path, const Strin
|
||||
|
||||
String str;
|
||||
if (buffer.size() > 0) {
|
||||
error = str.parse_utf8((const char *)buffer.ptr(), buffer.size());
|
||||
error = str.append_utf8((const char *)buffer.ptr(), buffer.size());
|
||||
ERR_FAIL_COND_V_MSG(error, nullptr, "Cannot parse shader: " + p_path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user