1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

set shader path before compilation

This commit is contained in:
Simon Döhl
2025-12-02 09:04:19 +01:00
parent f5918a9d35
commit 772caa8170
2 changed files with 2 additions and 1 deletions

View File

@@ -2281,6 +2281,7 @@ void MaterialStorage::shader_set_code(RID p_shader, const String &p_code) {
}
if (shader->data) {
shader->data->set_path_hint(shader->path_hint);
shader->data->set_code(p_code);
}