mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use append_ instead of parse_ for String methods.
This commit is contained in:
parent
594d64ec24
commit
ffa6ef220b
62 changed files with 245 additions and 274 deletions
|
|
@ -94,7 +94,7 @@ Ref<Resource> ResourceFormatLoaderShaderInclude::load(const String &p_path, cons
|
|||
|
||||
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 include: " + p_path);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue