From bc49bcbb795c45cdb91efc6b03d93e4202e766b2 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Mon, 20 Aug 2018 17:38:11 +0500 Subject: More correct face culling for rotated blocks --- src/Render.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Render.cpp') diff --git a/src/Render.cpp b/src/Render.cpp index 7f11dd9..58cf53d 100644 --- a/src/Render.cpp +++ b/src/Render.cpp @@ -420,8 +420,9 @@ void Render::RenderGui() { world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock).state, AssetManager::GetAssetNameByBlockId(BlockId{ world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock).id,0 }).c_str()); - ImGui::Text("Selected block direction: %d", - AssetManager::GetBlockModelByBlockId(world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock)).direction); + ImGui::Text("Selected block variant: %s:%s", + TransformBlockIdToBlockStateName(world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock)).first.c_str(), + TransformBlockIdToBlockStateName(world->GameStatePtr()->world.GetBlockId(world->GameStatePtr()->selectedBlock)).second.c_str()); } ImGui::End(); -- cgit v1.2.3