Avoid considering climate objects as 'unused'

This commit is contained in:
Aaron van Geffen committed 2025-03-01 19:34:30 +01:00
1 parent ac06d99408
commit fb9df58e1c
1 file changed
+4
@@ -753,6 +753,10 @@ int32_t EditorRemoveUnusedObjects()
if (objectType == ObjectType::peepAnimations)
continue;
// Avoid deleting climate objects, as they're not bound to entities.
if (objectType == ObjectType::climate)
continue;
// It’s hard to determine exactly if a scenery group is used, so do not remove these automatically.
if (objectType == ObjectType::sceneryGroup)
continue;