mirror of
https://github.com/godotengine/godot
synced 2024-09-05 14:59:59 +00:00
Merge pull request #73263 from clayjohn/render_priority
Notify mesh surface when render_priority changes
This commit is contained in:
commit
1a206d0e22
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue