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

Simplify GDVIRTUAL_CALL calls

This commit is contained in:
kobewi
2022-10-18 18:47:44 +02:00
parent 4a96fce801
commit d06a8320e5
28 changed files with 507 additions and 983 deletions

View File

@@ -71,20 +71,14 @@ Ref<Texture2D> EditorResourcePreviewGenerator::generate_from_path(const String &
bool EditorResourcePreviewGenerator::generate_small_preview_automatically() const {
bool success = false;
if (GDVIRTUAL_CALL(_generate_small_preview_automatically, success)) {
return success;
}
return false;
GDVIRTUAL_CALL(_generate_small_preview_automatically, success);
return success;
}
bool EditorResourcePreviewGenerator::can_generate_small_preview() const {
bool success = false;
if (GDVIRTUAL_CALL(_can_generate_small_preview, success)) {
return success;
}
return false;
GDVIRTUAL_CALL(_can_generate_small_preview, success);
return success;
}
void EditorResourcePreviewGenerator::_bind_methods() {