summaryrefslogtreecommitdiff
path: root/scene/2d/multimesh_instance_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/2d/multimesh_instance_2d.cpp')
-rw-r--r--scene/2d/multimesh_instance_2d.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/2d/multimesh_instance_2d.cpp b/scene/2d/multimesh_instance_2d.cpp
index d99d5b9b30..b99c0a3fa9 100644
--- a/scene/2d/multimesh_instance_2d.cpp
+++ b/scene/2d/multimesh_instance_2d.cpp
@@ -65,8 +65,9 @@ Ref<MultiMesh> MultiMeshInstance2D::get_multimesh() const {
}
void MultiMeshInstance2D::set_texture(const Ref<Texture2D> &p_texture) {
- if (p_texture == texture)
+ if (p_texture == texture) {
return;
+ }
texture = p_texture;
update();
emit_signal("texture_changed");