mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-06-30 21:36:33 -04:00
--Bug fixes
-Allow for empty fields in template files. --Code changes -When parsing, a boolean is not available to specify whether to use the default values if they are not present. This will be false for template files.
This commit is contained in:
@ -239,7 +239,7 @@ bool EmberGenome(EmberOptions& opt)
|
||||
|
||||
if (opt.TemplateFile() != "")
|
||||
{
|
||||
if (!ParseEmberFile(parser, opt.TemplateFile(), templateEmbers))
|
||||
if (!ParseEmberFile(parser, opt.TemplateFile(), templateEmbers, false))//Do not use defaults here to ensure only present fields get used when applying the template.
|
||||
return false;
|
||||
|
||||
if (templateEmbers.size() > 1)
|
||||
|
Reference in New Issue
Block a user