From f5dc24f4d58f809cb0a68a4b7216cf4ec0ce18b5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 27 Jul 2022 23:45:42 +0200 Subject: [PATCH] Fix typo. --- scene/resources/material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp index 7ce5ed0e3..5c33c65aa 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -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); } - materials_for_2d[version] = material; + materials_for_2d[hash] = material; // flush before using so we can access the shader right away flush_changes();