mirror of
https://github.com/Relintai/props.git
synced 2024-11-14 10:17:30 +01:00
Fix early return in _setup_material_albedo.
This commit is contained in:
parent
165048ded4
commit
303343211f
@ -151,7 +151,7 @@ void PropMaterialCachePCM::_setup_material_albedo(Ref<Texture> texture) {
|
|||||||
|
|
||||||
if (spmat.is_valid()) {
|
if (spmat.is_valid()) {
|
||||||
spmat->set_texture(SpatialMaterial::TEXTURE_ALBEDO, texture);
|
spmat->set_texture(SpatialMaterial::TEXTURE_ALBEDO, texture);
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<ShaderMaterial> shmat = m;
|
Ref<ShaderMaterial> shmat = m;
|
||||||
|
Loading…
Reference in New Issue
Block a user