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