1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Fix multimesh still drawing when visible instances is zero

This commit is contained in:
Brian Semrau
2021-11-12 21:38:19 -05:00
parent 19571c9c4b
commit 716e15cd26
3 changed files with 12 additions and 0 deletions

View File

@@ -334,6 +334,10 @@ void RenderForwardClustered::_render_list_template(RenderingDevice::DrawListID p
const GeometryInstanceSurfaceDataCache *surf = p_params->elements[i];
const RenderElementInfo &element_info = p_params->element_info[i];
if (surf->owner->instance_count == 0) {
continue;
}
push_constant.base_index = i + p_params->element_offset;
RID material_uniform_set;