summaryrefslogtreecommitdiffstats
path: root/scene/resources/gradient_texture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/gradient_texture.cpp')
-rw-r--r--scene/resources/gradient_texture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/gradient_texture.cpp b/scene/resources/gradient_texture.cpp
index 327a99c6ad..68ff5e9bd8 100644
--- a/scene/resources/gradient_texture.cpp
+++ b/scene/resources/gradient_texture.cpp
@@ -137,6 +137,7 @@ void GradientTexture1D::_update() {
texture = RS::get_singleton()->texture_2d_create(image);
}
}
+ RS::get_singleton()->texture_set_path(texture, get_path());
}
void GradientTexture1D::set_width(int p_width) {
@@ -276,6 +277,7 @@ void GradientTexture2D::_update() {
} else {
texture = RS::get_singleton()->texture_2d_create(image);
}
+ RS::get_singleton()->texture_set_path(texture, get_path());
}
float GradientTexture2D::_get_gradient_offset_at(int x, int y) const {