We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f066eea commit 7373fddCopy full SHA for 7373fdd
1 file changed
Source/Processors/Parameter/Parameter.cpp
@@ -1198,7 +1198,9 @@ PathParameter::PathParameter (ParameterOwner* owner,
1198
isDirectory (isDirectory_),
1199
isRequired (isRequired_)
1200
{
1201
- currentValue = defaultValue;
+ currentValue = "None";
1202
+ if (isRequired)
1203
+ currentValue = defaultValue;
1204
}
1205
1206
void PathParameter::setNextValue (var newValue_, bool undoable)
@@ -1248,7 +1250,10 @@ bool PathParameter::isValid()
1248
1250
1249
1251
if (currentValue.toString() == "default")
1252
1253
1254
1255
+ else
1256
1257
return true;
1258
1259
else if (! isDirectory && File (currentValue.toString()).existsAsFile())
0 commit comments