Fix #130815: Overlay-Next: Disabled overlays still visible

This commit is contained in:
Miguel Pozo
2024-11-27 20:07:15 +01:00
parent a66a5a3f50
commit 83dca75cdf

View File

@@ -186,7 +186,7 @@ void Instance::object_sync(ObjectRef &ob_ref, Manager &manager)
layer.particles.edit_object_sync(manager, ob_ref, resources, state);
}
if (in_paint_mode) {
if (in_paint_mode && !state.hide_overlays) {
switch (ob_ref.object->type) {
case OB_MESH:
/* TODO(fclem): Make it part of a #Meshes. */