File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,19 @@ static PrefabFolderStripper()
2121
2222 public void OnPreprocessBuild ( BuildReport report )
2323 {
24- StripFoldersFromDependentPrefabs ( ) ;
24+ if ( StripSettings . StripFoldersFromPrefabsInBuild )
25+ StripFoldersFromDependentPrefabs ( ) ;
2526 }
2627
2728 public void OnPostprocessBuild ( BuildReport report )
2829 {
29- RevertChanges ( ) ;
30+ if ( StripSettings . StripFoldersFromPrefabsInBuild )
31+ RevertChanges ( ) ;
3032 }
3133
3234 private static void HandlePrefabsOnPlayMode ( PlayModeStateChange state )
3335 {
34- if ( StripSettings . PlayMode == StrippingMode . DoNothing )
36+ if ( ! StripSettings . StripFoldersFromPrefabsInPlayMode || StripSettings . PlayMode == StrippingMode . DoNothing )
3537 return ;
3638
3739 if ( state == PlayModeStateChange . ExitingEditMode )
You can’t perform that action at this time.
0 commit comments