1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix MultiMesh visible_instance_count being ignored after the first frame

Co-authored-by: Clay John <claynjohn@gmail.com>
This commit is contained in:
Ricardo Buring
2022-12-10 21:57:44 +01:00
committed by clayjohn
parent 604493eb6e
commit 497f5576c1
3 changed files with 12 additions and 6 deletions

View File

@@ -485,6 +485,7 @@ public:
singleton->_instance_queue_update(instance, true, false);
} break;
case Dependency::DEPENDENCY_CHANGED_MULTIMESH_VISIBLE_INSTANCES:
case Dependency::DEPENDENCY_CHANGED_MATERIAL: {
singleton->_instance_queue_update(instance, false, true);
} break;
@@ -496,9 +497,6 @@ public:
case Dependency::DEPENDENCY_CHANGED_REFLECTION_PROBE: {
singleton->_instance_queue_update(instance, true, true);
} break;
case Dependency::DEPENDENCY_CHANGED_MULTIMESH_VISIBLE_INSTANCES: {
//ignored
} break;
case Dependency::DEPENDENCY_CHANGED_LIGHT_SOFT_SHADOW_AND_PROJECTOR: {
//requires repairing
if (instance->indexer_id.is_valid()) {