From d3b3419aff102dcb2e5ac7416ca34525f8ed00ab Mon Sep 17 00:00:00 2001 From: clayjohn Date: Mon, 13 Feb 2023 18:09:33 -0800 Subject: Notify mesh surface when render_priority changes This ensures that the mesh properly takes render_priority into account when changed --- drivers/gles3/storage/material_storage.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers') 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) { -- cgit v1.2.3