Преглед на файлове

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