mirror of
https://github.com/minetest/minetest.git
synced 2024-12-27 16:37:30 +01:00
Fix 4dir nodebox sometimes not rendering face (#14533)
This commit is contained in:
parent
00ef597639
commit
9f263319ca
@ -78,6 +78,32 @@ minetest.register_node("testnodes:4dir_nodebox", {
|
||||
groups = {dig_immediate=3},
|
||||
})
|
||||
|
||||
minetest.register_node("testnodes:4dir_nodebox_stair", {
|
||||
description = S("4dir Nodebox Stair Test Node").."\n"..
|
||||
S("param2 = 4dir rotation (0..3)"),
|
||||
tiles = {
|
||||
"testnodes_1f.png",
|
||||
"testnodes_2f.png",
|
||||
"testnodes_3f.png",
|
||||
"testnodes_4f.png",
|
||||
"testnodes_5f.png",
|
||||
"testnodes_6f.png",
|
||||
},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "4dir",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||
{-0.5, 0, 0, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
|
||||
groups = { dig_immediate = 3 },
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("testnodes:wallmounted", {
|
||||
description = S("Wallmounted Test Node").."\n"..
|
||||
S("param2 = wallmounted rotation (0..7)"),
|
||||
|
@ -1534,8 +1534,10 @@ void MapblockMeshGenerator::drawNodeboxNode()
|
||||
bool param2_is_rotation =
|
||||
cur_node.f->param_type_2 == CPT2_COLORED_FACEDIR ||
|
||||
cur_node.f->param_type_2 == CPT2_COLORED_WALLMOUNTED ||
|
||||
cur_node.f->param_type_2 == CPT2_COLORED_4DIR ||
|
||||
cur_node.f->param_type_2 == CPT2_FACEDIR ||
|
||||
cur_node.f->param_type_2 == CPT2_WALLMOUNTED;
|
||||
cur_node.f->param_type_2 == CPT2_WALLMOUNTED ||
|
||||
cur_node.f->param_type_2 == CPT2_4DIR;
|
||||
|
||||
bool param2_is_level =
|
||||
cur_node.f->param_type_2 == CPT2_LEVELED;
|
||||
|
Loading…
Reference in New Issue
Block a user