Simplify GDVIRTUAL_CALL calls
This commit is contained in:
parent
4a96fce801
commit
d06a8320e5
28 changed files with 507 additions and 983 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue