summaryrefslogtreecommitdiffstats
path: root/scene/resources/texture.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-06-09 00:23:50 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-06-09 00:24:18 -0300
commit612ab8fcdb94bf0cd9d7b4a3006b4e4f76c9a13b (patch)
tree1e7b4fdb8154098319b0c44ee0289288610a77c3 /scene/resources/texture.cpp
parent01ed55987c4c044191e50ecc94c277b97962ffc7 (diff)
downloadredot-engine-612ab8fcdb94bf0cd9d7b4a3006b4e4f76c9a13b.tar.gz
-Restored multithread capability to VisualServer
-Restored resource previews!
Diffstat (limited to 'scene/resources/texture.cpp')
-rw-r--r--scene/resources/texture.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index a1e0c95dd9..0b8ad5536c 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -1781,6 +1781,10 @@ float GradientTexture::get_offset(int pos) const {
return 0; //TODO: Maybe throw some error instead?
}
+Ref<Image> GradientTexture::get_data() const {
+ return VisualServer::get_singleton()->texture_get_data(texture);
+}
+
void GradientTexture::set_color(int pos, const Color &color) {
if (points.size() <= pos) {
points.resize(pos + 1);