demo fixes

This commit is contained in:
h4570
2022-08-24 19:50:11 +02:00
parent a21bcee671
commit 0fd2478049
5 changed files with 14 additions and 19 deletions
+3 -5
View File
@@ -28,12 +28,10 @@ EnemyManager::EnemyManager(Engine* engine, const Heightmap& heightmap) {
objOptions.flipUVs = true;
objOptions.scale = 250.0F;
auto* data = loader.load(FileUtils::fromCwd("game/models/zombie/zombie.obj"),
objOptions);
auto data = loader.load(FileUtils::fromCwd("game/models/zombie/zombie.obj"),
objOptions);
data->normalsEnabled = false;
motherMesh = new DynamicMesh(*data);
delete data;
motherMesh = new DynamicMesh(data.get());
bodyTexture = textureRepo->add(
FileUtils::fromCwd("game/models/zombie/BodyMaterial.png"));