Skip to content

Commit 05169c5

Browse files
committed
lookdev: Update APIs.
1 parent f1ae098 commit 05169c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LookDev~/Assets/Runtime/ThumbGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void StartProcessing(bool newOnly = false, bool selectedOnly = false)
7474
}
7575

7676
_combinations = new List<AssetMaterialCombination>(assets
77-
.SelectMany(a => AssetMaterialCombination.GetCombinations(a.Asset, true))
77+
.SelectMany(a => a.Asset.GetCombinations(true, true, false))
7878
);
7979

8080
if (newOnly) {
@@ -171,7 +171,7 @@ private AssetMaterialCombination NextAsset()
171171
return null;
172172
}
173173
var next = _combinations.First();
174-
if (next.HasDuplicateVariations) {
174+
if (!next.IsValidCombination) {
175175
_combinations.RemoveAt(0);
176176
return NextAsset();
177177
}

LookDev~/Assets/Runtime/ThumbGeneratorComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class ThumbGeneratorComponent : MonoBehaviour
3636
public string ThumbnailGuid;
3737
public string ThumbnailRoot;
3838

39-
private const int NumPreFrames = 40;
39+
private const int NumPreFrames = 120;
4040
private const int NumPostFrames = 20;
4141
private int _frame;
4242

0 commit comments

Comments
 (0)