diff options
author | Julian Eisel <julian@blender.org> | 2021-10-26 21:25:19 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-10-26 21:30:51 +0300 |
commit | f81c514bd22a25b2c6951e506f64252e0f5e84bf (patch) | |
tree | 1113861df8300cb3c835defd9d72474ea5a06b7c /source/blender/windowmanager/WM_api.h | |
parent | 18ace3b541eec120ad75fa7bbbaa15d9fb9b6c12 (diff) |
Assets: Disable snap-dragging for linking object assets
The location of a linked object isn't editable, or at least it will be reset
when reloading the file. So the drag & drop shouldn't even pretend like this
would work, so disable the snapping of the object and the bounding-box to show
the snapped object location while dragging.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index f9bc309af9f..26db02be289 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -752,6 +752,7 @@ ListBase *WM_dropboxmap_find(const char *idname, int spaceid, int regionid); /* ID drag and drop */ ID *WM_drag_asset_id_import(wmDragAsset *asset_drag, int flag_extra); +bool WM_drag_asset_will_import_linked(const wmDrag *drag); void WM_drag_add_local_ID(struct wmDrag *drag, struct ID *id, struct ID *from_parent); struct ID *WM_drag_get_local_ID(const struct wmDrag *drag, short idcode); struct ID *WM_drag_get_local_ID_from_event(const struct wmEvent *event, short idcode); |