mirror of
https://github.com/minetest/minetest.git
synced 2024-09-12 00:26:50 +02:00
Only use palette if param_type2 is correct
This commit is contained in:
parent
021e667511
commit
6f641df8a5
@ -786,7 +786,10 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc
|
|||||||
tiledef_special[j].backface_culling, material_type);
|
tiledef_special[j].backface_culling, material_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
palette = tsrc->getPalette(palette_name);
|
if (param_type_2 == CPT2_COLOR ||
|
||||||
|
param_type_2 == CPT2_COLORED_FACEDIR ||
|
||||||
|
param_type_2 == CPT2_COLORED_WALLMOUNTED)
|
||||||
|
palette = tsrc->getPalette(palette_name);
|
||||||
|
|
||||||
if ((drawtype == NDT_MESH) && (mesh != "")) {
|
if ((drawtype == NDT_MESH) && (mesh != "")) {
|
||||||
// Meshnode drawtype
|
// Meshnode drawtype
|
||||||
|
Loading…
Reference in New Issue
Block a user