浏览代码

fix trees were not generated

Kolja Strohm 2 月之前
父节点
当前提交
9d9649e100
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      FactoryCraft/TreeTemplate.cpp

+ 1 - 0
FactoryCraft/TreeTemplate.cpp

@@ -98,6 +98,7 @@ void TreeTemplate::setMinHeight(int height)
 void TreeTemplate::setMaxHeight(int height)
 {
     maxHeight = height;
+    setMaxSize(Framework::Vec3<int>(5, 5, maxHeight));
 }
 
 int TreeTemplate::getMinHeight() const