public void UpdateSwitchList() { if (inputBiome != null) { currentSampler = inputBiome.GetSampler(samplerName); } UpdateRelativeBounds(); switchList.UpdateMinMax(relativeMin, relativeMax); switchList.UpdateSampler(samplerName, currentSampler); }
void ReloadCallback(PWNode from) { //load the new sampler if there it was modified if (inputBiome != null) { currentSampler = inputBiome.GetSampler(samplerName); } UpdateRelativeBounds(); switchList.UpdateMinMax(relativeMin, relativeMax); switchList.UpdateSampler(samplerName, currentSampler); switchList.UpdateBiomeRepartitionPreview(inputBiome); }