mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Prepare more for node definition serialization
This commit is contained in:
parent
cf6e22e9a6
commit
a48a0e77eb
4 changed files with 92 additions and 86 deletions
|
@ -366,15 +366,16 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
|||
*/
|
||||
else if(nodedef->get(n).liquid_type == LIQUID_FLOWING)
|
||||
{
|
||||
assert(nodedef->get(n).special_material);
|
||||
video::SMaterial &liquid_material =
|
||||
*nodedef->get(n).special_material;
|
||||
video::SMaterial &liquid_material_bfculled =
|
||||
*nodedef->get(n).special_material2;
|
||||
assert(nodedef->get(n).special_materials[0]);
|
||||
assert(nodedef->get(n).special_materials[1]);
|
||||
assert(nodedef->get(n).special_aps[0]);
|
||||
|
||||
assert(nodedef->get(n).special_atlas);
|
||||
video::SMaterial &liquid_material =
|
||||
*nodedef->get(n).special_materials[0];
|
||||
video::SMaterial &liquid_material_bfculled =
|
||||
*nodedef->get(n).special_materials[1];
|
||||
AtlasPointer &pa_liquid1 =
|
||||
*nodedef->get(n).special_atlas;
|
||||
*nodedef->get(n).special_aps[0];
|
||||
|
||||
bool top_is_same_liquid = false;
|
||||
MapNode ntop = data->m_vmanip.getNodeNoEx(blockpos_nodes + v3s16(x,y+1,z));
|
||||
|
@ -661,12 +662,16 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
|||
else if(nodedef->get(n).liquid_type == LIQUID_SOURCE
|
||||
&& new_style_water)
|
||||
{
|
||||
assert(nodedef->get(n).special_material);
|
||||
assert(nodedef->get(n).special_materials[0]);
|
||||
//assert(nodedef->get(n).special_materials[1]);
|
||||
assert(nodedef->get(n).special_aps[0]);
|
||||
|
||||
video::SMaterial &liquid_material =
|
||||
*nodedef->get(n).special_material;
|
||||
assert(nodedef->get(n).special_atlas);
|
||||
*nodedef->get(n).special_materials[0];
|
||||
/*video::SMaterial &liquid_material_bfculled =
|
||||
*nodedef->get(n).special_materials[1];*/
|
||||
AtlasPointer &pa_liquid1 =
|
||||
*nodedef->get(n).special_atlas;
|
||||
*nodedef->get(n).special_aps[0];
|
||||
|
||||
bool top_is_air = false;
|
||||
MapNode n = data->m_vmanip.getNodeNoEx(blockpos_nodes + v3s16(x,y+1,z));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue