Merge pull request #113432 from TheDying0fLight/set-shader-path-before-compiling

Set shader path before compilation
This commit is contained in:
Rémi Verschelde 2025-12-02 14:17:38 +01:00
commit 5f12ada7a4
No known key found for this signature in database
GPG key ID: C3336907360768E1
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);
}