summaryrefslogtreecommitdiff
path: root/drivers/png/resource_saver_png.cpp
diff options
context:
space:
mode:
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-07-16 21:19:53 +0300
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-07-16 21:19:53 +0300
commit65bb76ab35e6f7c6e1f5b3361ff2046bf371f86b (patch)
tree10a7de42ccfb5ecf324e5588a737206123bb3a8e /drivers/png/resource_saver_png.cpp
parent22c843b0c451a0c3d79a3b3e6af900b841c51c12 (diff)
Fix CurveTexture being listed as saveable to .png
Fixes #27880
Diffstat (limited to 'drivers/png/resource_saver_png.cpp')
-rw-r--r--drivers/png/resource_saver_png.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/png/resource_saver_png.cpp b/drivers/png/resource_saver_png.cpp
index 89e8ee32cc..43a30f055b 100644
--- a/drivers/png/resource_saver_png.cpp
+++ b/drivers/png/resource_saver_png.cpp
@@ -79,7 +79,7 @@ bool ResourceSaverPNG::recognize(const RES &p_resource) const {
void ResourceSaverPNG::get_recognized_extensions(const RES &p_resource, List<String> *p_extensions) const {
- if (Object::cast_to<Texture>(*p_resource)) {
+ if (Object::cast_to<ImageTexture>(*p_resource)) {
p_extensions->push_back("png");
}
}