mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #113432 from TheDying0fLight/set-shader-path-before-compiling
Set shader path before compilation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user