|
@@ -26,7 +26,7 @@ PropertySharedPtr PropertyParser::parse (const JSON& it, const std::string& name
|
|
|
if (type == "scenetexture") {
|
|
if (type == "scenetexture") {
|
|
|
return parseSceneTexture (it, name);
|
|
return parseSceneTexture (it, name);
|
|
|
}
|
|
}
|
|
|
- if (type == "file") {
|
|
|
|
|
|
|
+ if (type == "file" || type == "directory") {
|
|
|
return parseFile (it, name);
|
|
return parseFile (it, name);
|
|
|
}
|
|
}
|
|
|
if (type == "textinput") {
|
|
if (type == "textinput") {
|
|
@@ -95,7 +95,7 @@ PropertySharedPtr PropertyParser::parseBoolean (const JSON& it, const std::strin
|
|
|
.name = name,
|
|
.name = name,
|
|
|
.text = it.optional<std::string> ("text", ""),
|
|
.text = it.optional<std::string> ("text", ""),
|
|
|
},
|
|
},
|
|
|
- it.require ("value", "Property must have a value")
|
|
|
|
|
|
|
+ it.optional ("value", false)
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|