Browse Source

fix trees were not generated

Kolja Strohm 9 months ago
parent
commit
9d9649e100
1 changed files with 1 additions and 0 deletions
  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)
 void TreeTemplate::setMaxHeight(int height)
 {
 {
     maxHeight = height;
     maxHeight = height;
+    setMaxSize(Framework::Vec3<int>(5, 5, maxHeight));
 }
 }
 
 
 int TreeTemplate::getMinHeight() const
 int TreeTemplate::getMinHeight() const