|
@@ -98,7 +98,6 @@ void TreeTemplate::setMinHeight(int height)
|
|
void TreeTemplate::setMaxHeight(int height)
|
|
void TreeTemplate::setMaxHeight(int height)
|
|
{
|
|
{
|
|
maxHeight = height;
|
|
maxHeight = height;
|
|
- Framework::Vec3<int>(5, 5, maxHeight);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
int TreeTemplate::getMinHeight() const
|
|
int TreeTemplate::getMinHeight() const
|
|
@@ -130,7 +129,7 @@ void TreeTemplateFactory::fromJson(
|
|
zConfig->asObject()->zValue("leaves")->asString()->getString()));
|
|
zConfig->asObject()->zValue("leaves")->asString()->getString()));
|
|
zResult->setMinHeight(
|
|
zResult->setMinHeight(
|
|
(int)(zConfig->asObject()->zValue("minSize")->asNumber()->getNumber()));
|
|
(int)(zConfig->asObject()->zValue("minSize")->asNumber()->getNumber()));
|
|
- zResult->setMinHeight(
|
|
|
|
|
|
+ zResult->setMaxHeight(
|
|
(int)(zConfig->asObject()->zValue("maxSize")->asNumber()->getNumber()));
|
|
(int)(zConfig->asObject()->zValue("maxSize")->asNumber()->getNumber()));
|
|
GeneratorTemplateFactory::fromJson(zResult, zConfig);
|
|
GeneratorTemplateFactory::fromJson(zResult, zConfig);
|
|
}
|
|
}
|