On 09/01/2015 at 07:54, xxxxxxxx wrote:
at first I'd like to say sorry, your post remained unanswered for such a long time.
And I'm even more sorry, that I probably won't provide the answer you'd like to get.
From your other posts I know, that you are already quite familiar with drag'n'drop.
So you will probably already know, that it's not the one, who's starting the drag'n'drop, who decides on what to do with the dragged item, but rather the receiver. In your case the viewport.
And although it may seem as if the it is possible to drag object from the content browser into the viewport, in order to add them to the active scene, it actually works a bit different. In reality the content browser passes a info structure similar to the SDKBrowserDragInfo structure, which contains only a URL of the scene, which then gets merged into the active scene via LoadDocument() by the viewport.
So I thought, you may be able to imitate this behavior to reach your desired result by creating a temporary scene with the object positioned as desired and then starting a DRAGTYPE_BROWSER with this scene. But unfortunately you can't, as you don't have the means to instantiate a correctly filled drag info structure. SDKBrowserDragInfo only serves for receiving drags from the browser (as shown in the asynctest.cpp SDK example) and can't be used for your purposes.
To make a long story short, I don't think, it is possible to achieve, what you are asking for. :cry: