diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-08-21 17:43:26 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-08-21 17:43:26 +0200 |
commit | 228920cde3d3860280cdedbbe69c33767791e4a7 (patch) | |
tree | 1a31fc4e2aa9a2e78de775fd283dbcadf51b6590 /src/RendererSectionData.cpp | |
parent | Fixed linux compilation errors (diff) | |
download | AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.gz AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.bz2 AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.lz AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.xz AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.tar.zst AltCraft-228920cde3d3860280cdedbbe69c33767791e4a7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/RendererSectionData.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/RendererSectionData.cpp b/src/RendererSectionData.cpp index 1cbb4e9..e72a369 100644 --- a/src/RendererSectionData.cpp +++ b/src/RendererSectionData.cpp @@ -29,6 +29,8 @@ void AddFacesByBlockModel(RendererSectionData &data, const BlockFaces &model, co break; } } + if (faceDirection == FaceDirection::none) + continue; if (visibility[faceDirection]) continue; @@ -110,7 +112,7 @@ RendererSectionData ParseSection(const SectionsData §ions) data.hash = sections.section.GetHash(); data.sectionPos = sections.section.GetPosition(); - glm::mat4 baseOffset = glm::translate(glm::mat4(), (sections.section.GetPosition() * 16).glm()), transform; + glm::mat4 baseOffset = glm::translate(glm::mat4(1.0), (sections.section.GetPosition() * 16).glm()), transform; for (int y = 0; y < 16; y++) { for (int z = 0; z < 16; z++) { |