summaryrefslogtreecommitdiffstats
path: root/scene/resources/material.cpp
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2019-11-17 11:09:56 -0800
committerclayjohn <claynjohn@gmail.com>2019-11-17 11:11:25 -0800
commit2bc6302607c19e1e7b7b3c7862a4ca3907524ff1 (patch)
tree19c92ebcba2e6c155bcce3502b1ed1f874ed016f /scene/resources/material.cpp
parentda4079f231acf9aeee3487e831fbf8cb3bceb6ed (diff)
downloadredot-engine-2bc6302607c19e1e7b7b3c7862a4ca3907524ff1.tar.gz
Properly update texture when roughness/metallic set
Diffstat (limited to 'scene/resources/material.cpp')
-rw-r--r--scene/resources/material.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index fab0aace14..41bf7f4bf0 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -1405,8 +1405,8 @@ void SpatialMaterial::set_texture(TextureParam p_param, const Ref<Texture> &p_te
textures[p_param] = p_texture;
RID rid = p_texture.is_valid() ? p_texture->get_rid() : RID();
VS::get_singleton()->material_set_param(_get_material(), shader_names->texture_names[p_param], rid);
- _queue_shader_change();
_change_notify();
+ _queue_shader_change();
}
Ref<Texture> SpatialMaterial::get_texture(TextureParam p_param) const {