sync capture type with preferences

This commit is contained in:
ntr committed 2022-06-15 12:29:17 +10:00
1 parent 8e06a0467a
commit e78d9c9d48
13 files changed
+900 -971

No files matched your search

+4
View File
@@ -43,6 +43,9 @@ public class VfxSpectrumBinder : VFXBinderBase {
var spectrumData = GetSpectrumData();
// not sure why this can happen, something to do with source being loaded still maybe
if (spectrumData == null) return;
if (symmetric) {
for (int i = 0; i < source.SpectrumSize; i++) {
_colorCache[source.SpectrumSize + i] = new Color(spectrumData[i], 0, 0, 0);
@@ -73,6 +76,7 @@ public class VfxSpectrumBinder : VFXBinderBase {
// Run spectrum data through all configured transformers
if (Transformers != null && Transformers.Count > 0) {
foreach (var transformer in Transformers) {
if (spectrumData == null) continue;
spectrumData = transformer.Transform(spectrumData);
}
}