diff options
author | Julian Eisel <julian@blender.org> | 2021-11-18 13:23:15 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-11-18 13:47:21 +0300 |
commit | e5774282b94772af8822f4e3ab8b24207a450fb8 (patch) | |
tree | de686b5cdabb16597a7d4d06c22e16f80169cd8b /source/blender/editors/include | |
parent | 8c0370ef7b8d2854ca6eac8f57c626bb3c4b2f2b (diff) |
Fix asset preview not showing up for current file data-blocks
For data-blocks from the current file, the image-buffer for dragging
wasn't set at all. This wasn't intentional, dragging things in the Asset
Browser should just always show the preview.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 725c9921d13..065b0a2d057 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -773,6 +773,7 @@ void UI_block_translate(uiBlock *block, int x, int y); int UI_but_return_value_get(uiBut *but); void UI_but_drag_set_id(uiBut *but, struct ID *id); +void UI_but_drag_attach_image(uiBut *but, struct ImBuf *imb, const float scale); void UI_but_drag_set_asset(uiBut *but, const struct AssetHandle *asset, const char *path, |