Fix typo.

This commit is contained in:
Relintai 2022-07-27 23:45:42 +02:00
parent 780e820b67
commit f5dc24f4d5

View File

@ -1789,7 +1789,7 @@ RID SpatialMaterial::get_material_rid_for_2d(bool p_shaded, bool p_transparent,
material->set_billboard_mode(p_billboard_y ? BILLBOARD_FIXED_Y : BILLBOARD_ENABLED); material->set_billboard_mode(p_billboard_y ? BILLBOARD_FIXED_Y : BILLBOARD_ENABLED);
} }
materials_for_2d[version] = material; materials_for_2d[hash] = material;
// flush before using so we can access the shader right away // flush before using so we can access the shader right away
flush_changes(); flush_changes();