aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorpoke10242018-02-28 20:23:40 +0100
committerpoke10242018-02-28 20:23:40 +0100
commit899f7b125e843d7187ad7c614588d635ce989f80 (patch)
treebbfb881bc73afaebfd467282a48cbb4298aa99a9 /editor/plugins
parent3d03bcd0636aacfe530c52fc1cdc32c2edffea04 (diff)
downloadgodot-899f7b125e843d7187ad7c614588d635ce989f80.tar.gz
godot-899f7b125e843d7187ad7c614588d635ce989f80.tar.zst
godot-899f7b125e843d7187ad7c614588d635ce989f80.zip
Fix round preview getting square on "run scene" (issue 16734)
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/editor_preview_plugins.cpp2
-rw-r--r--editor/plugins/editor_preview_plugins.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/editor_preview_plugins.cpp b/editor/plugins/editor_preview_plugins.cpp
index 47d730cdf..8542296bd 100644
--- a/editor/plugins/editor_preview_plugins.cpp
+++ b/editor/plugins/editor_preview_plugins.cpp
@@ -40,7 +40,7 @@
#include "scene/resources/material.h"
#include "scene/resources/mesh.h"
-static void post_process_preview(Ref<Image> p_image) {
+void post_process_preview(Ref<Image> p_image) {
if (p_image->get_format() != Image::FORMAT_RGBA8)
p_image->convert(Image::FORMAT_RGBA8);
diff --git a/editor/plugins/editor_preview_plugins.h b/editor/plugins/editor_preview_plugins.h
index 2e12515e3..35b5c3a5f 100644
--- a/editor/plugins/editor_preview_plugins.h
+++ b/editor/plugins/editor_preview_plugins.h
@@ -33,6 +33,8 @@
#include "editor/editor_resource_preview.h"
+void post_process_preview(Ref<Image> p_image);
+
class EditorTexturePreviewPlugin : public EditorResourcePreviewGenerator {
GDCLASS(EditorTexturePreviewPlugin, EditorResourcePreviewGenerator)
public: