Skip to content

Commit 56d5116

Browse files
committed
Fixed changed prefabs not serializing occasionally
Sometimes play mode options are disabled but DisableDomainReload flag is still set, so we need to check if the options are enabled
1 parent 2a3c6a1 commit 56d5116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/Prefab Handling/ChangedPrefabs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static void SerializeIfNeeded()
5959
// Serialization is only needed if prefabs are edited before entering play mode and the domain will reload.
6060
// In all other cases, changes to prefabs will be reverted before a domain reload.
6161
#if UNITY_2019_3_OR_NEWER
62-
if (EditorSettings.enterPlayModeOptions.HasFlag(EnterPlayModeOptions.DisableDomainReload))
62+
if (EditorSettings.enterPlayModeOptionsEnabled && EditorSettings.enterPlayModeOptions.HasFlag(EnterPlayModeOptions.DisableDomainReload))
6363
return;
6464
#endif
6565

0 commit comments

Comments
 (0)