On 06/03/2014 at 07:45, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
---------
Hi there!
I just tested the following code from within a custom dialog:
Bool ImageArea::InputEvent(const BaseContainer& msg)
{
if (msg.GetLong(BFM_INPUT_DEVICE) == BFM_INPUT_MOUSE)
{
if (msg.GetLong(BFM_INPUT_CHANNEL) == BFM_INPUT_MOUSELEFT)
{
AutoAlloc<AtomArray> arr;
arr->Append(BaseObject::Alloc(Ocube));
HandleMouseDrag(msg, DRAGTYPE_ATOMARRAY, arr, 0);
return TRUE;
}
}
return FALSE;
}
This works as exspected if I drop into the object manager (creates new object) or content browser (new preset). But if I drop into the viewport, nothing happens. Any idea whats going wronge here?
Best,
Satara