Properly update materials when adding surface, fixes #23790
This commit is contained in:
@@ -2235,7 +2235,7 @@ void RasterizerStorageGLES2::mesh_add_surface(RID p_mesh, uint32_t p_format, VS:
|
||||
}
|
||||
|
||||
mesh->surfaces.push_back(surface);
|
||||
mesh->instance_change_notify(true, false);
|
||||
mesh->instance_change_notify(true, true);
|
||||
|
||||
info.vertex_mem += surface->total_data_size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user