Blender Git Loki

Git Commits -> Revision eac8958

June 14, 2021, 14:34 (GMT)
Fix object assets getting duplicated after dropping

The operator run when dropping objects would duplicate the dropped object and
place that in the scene, even though that was just appended. Addressed by
making the duplication optional for the operator. If the duplication is not
requested, the object is just added to the scene (if needed), repositioned
based on the drop location and selected (deselecting other objects).
This makes the operator work as expected when using it to drop assets.

Reviewed as part of https://developer.blender.org/D11536.

Reviewed by: Bastien Montagne

Commit Details:

Full Hash: eac8958aa7524c386ba914a589871fb194e6eeb5
Parent Commit: dab7634
Committed By: Bastien Montagne
Lines Changed: +53, -15

2 Modified Paths:

/source/blender/editors/object/object_add.c (+52, -15) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021