Modifiers - Fixed the same issue but at the right place now

Modifiers - Saturate and desaturate modifiers WIP
This commit is contained in:
SpoinkyNL committed 2020-11-02 23:57:08 +01:00
1 parent f2e21bfe37
commit 26daa8e1dd
5 files changed
+45 -16

No files matched your search

@@ -140,7 +140,12 @@ namespace Artemis.UI.Screens.ProfileEditor.LayerProperties.DataBindings.DirectDa
if (DynamicSelectionViewModel != null)
DynamicSelectionViewModel.ChangeDataModelPath(Modifier.ParameterPath);
else if (StaticInputViewModel != null)
{
// Ensure the right static value is never null when the preferred type is a value type
StaticInputViewModel.Value = Modifier.ParameterStaticValue;
if (SelectedModifierType.ParameterType.IsValueType && StaticInputViewModel.Value == null)
StaticInputViewModel.Value = SelectedModifierType.ParameterType.GetDefault();
}
}
private void ExecuteSelectModifierTypeCommand(object context)