From f8a9844d804252fc3c887c26a846508a88c85bb9 Mon Sep 17 00:00:00 2001 From: MrCdK Date: Mon, 20 May 2019 10:45:12 +0200 Subject: Renamed EditorResourcePreviewGenerator.should_generate_small_preview() to generate_small_preview_automatically() Added can_generate_small_preview() so the generator uses generate() or generate_from_path() if it returns true Added can_generate_small_preview() and generate_small_preview_automatically() to the scripting languages --- doc/classes/EditorResourcePreviewGenerator.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/EditorResourcePreviewGenerator.xml b/doc/classes/EditorResourcePreviewGenerator.xml index 6592ffd1a8..76b9445933 100644 --- a/doc/classes/EditorResourcePreviewGenerator.xml +++ b/doc/classes/EditorResourcePreviewGenerator.xml @@ -9,6 +9,14 @@ + + + + + If this function returns true the generator will call [method generate] or [method generate_from_path] for small previews too. + By default it returns false. + + @@ -35,6 +43,14 @@ Care must be taken because this function is always called from a thread (not the main thread). + + + + + If this function returns true the generator will automatically generate the small previews from the normal preview texture generated by the methods [method generate] or [method generate_from_path]. + By default it returns false. + + -- cgit v1.2.3