Fix early return in _setup_material_albedo.

This commit is contained in:
Relintai 2022-02-16 20:50:41 +01:00
parent 165048ded4
commit 303343211f

View File

@ -151,7 +151,7 @@ void PropMaterialCachePCM::_setup_material_albedo(Ref<Texture> texture) {
if (spmat.is_valid()) {
spmat->set_texture(SpatialMaterial::TEXTURE_ALBEDO, texture);
return;
continue;
}
Ref<ShaderMaterial> shmat = m;