1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

-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
This commit is contained in:
Juan Linietsky
2018-05-18 12:37:18 -03:00
parent 5e997c9483
commit 9b5275b135
2 changed files with 4 additions and 2 deletions

View File

@@ -794,13 +794,13 @@ Ref<Texture> CurvePreviewGenerator::generate(const Ref<Resource> &p_from) {
img_ref.instance();
Image &im = **img_ref;
im.create(thumbnail_size, thumbnail_size, 0, Image::FORMAT_RGBA8);
im.create(thumbnail_size, thumbnail_size / 2, 0, Image::FORMAT_RGBA8);
im.lock();
Color bg_color(0.1, 0.1, 0.1, 1.0);
for (int i = 0; i < thumbnail_size; i++) {
for (int j = 0; j < thumbnail_size; j++) {
for (int j = 0; j < thumbnail_size / 2; j++) {
im.set_pixel(i, j, bg_color);
}
}