You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user