Commit 5127c003 authored by Bianca Tost's avatar Bianca Tost

fixed bugs concerning render mode change in VRC (reenable of normal curves,...

fixed bugs concerning render mode change in VRC (reenable of normal curves, app crash when changing render mode without variables assigned to the vrc)
parent 3f808756
......@@ -1478,13 +1478,13 @@ void MNWPVolumeRaycasterActor::onQtPropertyChanged(QtProperty* property)
if (suppressActorUpdates()) return;
var = dynamic_cast<MNWP3DVolumeActorVariable*>(variables[variableIndex]);
shadingVar = dynamic_cast<MNWP3DVolumeActorVariable*>(variables[shadingVariableIndex]);
if (var == nullptr || shadingVar == nullptr) return;
switch (renderMode)
{
case RenderMode::Original:
case RenderMode::DVR:
normalCurveSettings->groupProp->setEnabled(true);
var->ensembleSingleMemberProperty->setEnabled(true);
var->setEnsembleMember(properties->getEnumItem(
var->ensembleSingleMemberProperty).toInt());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment