You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Make some Image methods static
This commit is contained in:
@@ -1618,7 +1618,7 @@ void EditorNode::_save_scene_with_preview(String p_file, int p_idx) {
|
||||
// which would result in an invalid texture.
|
||||
if (c3d == 0 && c2d == 0) {
|
||||
img.instantiate();
|
||||
img->create(1, 1, false, Image::FORMAT_RGB8);
|
||||
img->initialize_data(1, 1, false, Image::FORMAT_RGB8);
|
||||
} else if (c3d < c2d) {
|
||||
Ref<ViewportTexture> viewport_texture = scene_root->get_texture();
|
||||
if (viewport_texture->get_width() > 0 && viewport_texture->get_height() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user