2
0
mirror of https://github.com/godotengine/godot.git synced 2025-03-26 00:16:37 +08:00

Merge pull request from clayjohn/render_priority

Notify mesh surface when render_priority changes
This commit is contained in:
Rémi Verschelde 2023-02-14 11:05:28 +01:00
commit 1a206d0e22
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 2 additions and 0 deletions
drivers/gles3/storage
servers/rendering/renderer_rd/storage_rd

@ -2881,6 +2881,7 @@ void MaterialStorage::material_set_render_priority(RID p_material, int priority)
if (material->data) {
material->data->set_render_priority(priority);
}
material->dependency.changed_notify(Dependency::DEPENDENCY_CHANGED_MATERIAL);
}
bool MaterialStorage::material_is_animated(RID p_material) {

@ -2803,6 +2803,7 @@ void MaterialStorage::material_set_render_priority(RID p_material, int priority)
if (material->data) {
material->data->set_render_priority(priority);
}
material->dependency.changed_notify(Dependency::DEPENDENCY_CHANGED_MATERIAL);
}
bool MaterialStorage::material_is_animated(RID p_material) {