Skip to content

Commit a9ea59f

Browse files
authored
Update SceneLOD.cs
Moved StartAssetEditing outside of try.
1 parent 08da8b5 commit a9ea59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/SceneLOD.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public static string[] OnWillSaveAssets(string[] paths)
2727
var scene = SceneManager.GetSceneByPath(path);
2828
if(!scene.IsValid()) continue;
2929

30+
AssetDatabase.StartAssetEditing();
3031
try
3132
{
32-
AssetDatabase.StartAssetEditing();
3333
var rootGameObjects = scene.GetRootGameObjects();
3434
foreach (var go in rootGameObjects)
3535
{

0 commit comments

Comments
 (0)