summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2018-05-18 12:37:18 -0300
committerJuan Linietsky <juan@godotengine.org>2018-05-18 12:37:18 -0300
commit9b5275b135ad8887b402628084829f25dd1f9c1a (patch)
tree2cf69f81a026e2c0621d0e1cb7a541b1ace34cb6 /scene/resources
parent5e997c9483e7409e67f3430b667b2982f75b2418 (diff)
-Hid texture flags by default so they dont take so much space
-make curve texture preview not so large, so its easier to embed the editor
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/texture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index 56a2e7afba..54f5aea160 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -76,7 +76,9 @@ void Texture::_bind_methods() {
ClassDB::bind_method(D_METHOD("draw_rect_region", "canvas_item", "rect", "src_rect", "modulate", "transpose", "normal_map", "clip_uv"), &Texture::draw_rect_region, DEFVAL(Color(1, 1, 1)), DEFVAL(false), DEFVAL(Variant()), DEFVAL(true));
ClassDB::bind_method(D_METHOD("get_data"), &Texture::get_data);
+ ADD_GROUP("Flags", "");
ADD_PROPERTY(PropertyInfo(Variant::INT, "flags", PROPERTY_HINT_FLAGS, "Mipmaps,Repeat,Filter,Anisotropic Linear,Convert to Linear,Mirrored Repeat,Video Surface"), "set_flags", "get_flags");
+ ADD_GROUP("", "");
BIND_ENUM_CONSTANT(FLAGS_DEFAULT);
BIND_ENUM_CONSTANT(FLAG_MIPMAPS);