diff --git a/Source/Processors/Parameter/Parameter.cpp b/Source/Processors/Parameter/Parameter.cpp index 6b3e3fc37..3ba73ed16 100755 --- a/Source/Processors/Parameter/Parameter.cpp +++ b/Source/Processors/Parameter/Parameter.cpp @@ -1198,7 +1198,9 @@ PathParameter::PathParameter (ParameterOwner* owner, isDirectory (isDirectory_), isRequired (isRequired_) { - currentValue = defaultValue; + currentValue = "None"; + if (isRequired) + currentValue = defaultValue; } void PathParameter::setNextValue (var newValue_, bool undoable) @@ -1248,7 +1250,10 @@ bool PathParameter::isValid() { if (currentValue.toString() == "default") { - currentValue = defaultValue; + if (isRequired) + currentValue = defaultValue; + else + currentValue = "None"; return true; } else if (! isDirectory && File (currentValue.toString()).existsAsFile())