mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Merge pull request #22771 from guilhermefelipecgs/fix_inspector_preview
Fix inspector preview
This commit is contained in:
commit
604810f611
4 changed files with 11 additions and 5 deletions
|
@ -1940,7 +1940,7 @@ void VisualScriptEditor::_draw_color_over_button(Object *obj, Color p_color) {
|
|||
button->draw_rect(Rect2(normal->get_offset(), button->get_size() - normal->get_minimum_size()), p_color);
|
||||
}
|
||||
|
||||
void VisualScriptEditor::_button_resource_previewed(const String &p_path, const Ref<Texture> &p_preview, Variant p_ud) {
|
||||
void VisualScriptEditor::_button_resource_previewed(const String &p_path, const Ref<Texture> &p_preview, const Ref<Texture> &p_small_preview, Variant p_ud) {
|
||||
|
||||
Array ud = p_ud;
|
||||
ERR_FAIL_COND(ud.size() != 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue