Blender Git Loki

Git Commits -> Revision e90a2a3

Revision e90a2a3 by Julian Eisel (master)
January 24, 2021, 20:29 (GMT)
Asset Browser: Avoid appending asset data-block when drop operator will fail

For assets, the copy callback of the drop-box would append the asset
data-block. Check if the operator's poll succeeds before calling the copy
callback.
Otherwise the data-block is "secretly" appended, which the user doesn't expect
and won't notice without checking the file data in the Outliner.

For masks I had to extend the poll function, it didn't check context
sufficiently.

Commit Details:

Full Hash: e90a2a3f01f97e1a32f869ff63c8d80e15197860
Parent Commit: f04206c
Lines Changed: +12, -3

2 Modified Paths:

/source/blender/editors/space_node/node_add.c (+8, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+4, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021