We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c530afd commit 729d2adCopy full SHA for 729d2ad
Assets/Scripts/VolumeData/VolumeDataset.cs
@@ -107,16 +107,15 @@ private void CalculateValueBounds()
107
minDataValue = float.MaxValue;
108
maxDataValue = float.MinValue;
109
110
- for (int i = 0; i < dimX * dimY * dimZ; i++)
+ if (data != null)
111
{
112
- if (data != null)
+ for (int i = 0; i < dimX * dimY * dimZ; i++)
113
114
float val = data[i];
115
minDataValue = Mathf.Min(minDataValue, val);
116
maxDataValue = Mathf.Max(maxDataValue, val);
117
}
118
119
-
120
121
122
private Texture3D CreateTextureInternal()
0 commit comments