diff options
author | clayjohn <claynjohn@gmail.com> | 2023-02-13 18:09:33 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-02-13 18:09:33 -0800 |
commit | d3b3419aff102dcb2e5ac7416ca34525f8ed00ab (patch) | |
tree | c96a9ab04c7d9b129f33710c05bf1543d3066b3b /drivers | |
parent | 4a2c2170b40b4e5562c9ad0f1e0ed84c6bf5c7b7 (diff) |
Notify mesh surface when render_priority changes
This ensures that the mesh properly takes render_priority into account when changed
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles3/storage/material_storage.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles3/storage/material_storage.cpp b/drivers/gles3/storage/material_storage.cpp index aa8df606cf..2c530e3ae6 100644 --- a/drivers/gles3/storage/material_storage.cpp +++ b/drivers/gles3/storage/material_storage.cpp @@ -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) { |