On 26/10/2016 at 19:42, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R18
Platform: Mac ; Mac OSX ;
Language(s) : C++ ;
---------
This is a weird one.
I'm trying to add a Gradient to a Description, but on OSX it just seems to crash C4D. My code is pretty simple and is basically doing something like:
BaseContainer bc = GetCustomDataTypeDefault(CUSTOMDATATYPE_GRADIENT);
bc.SetInt32(DESC_CUSTOMGUI, CUSTOMGUI_GRADIENT);
bc.SetString(DESC_SHORT_NAME, "Gradient");
bc.SetString(DESC_NAME, "Gradient");
.
.
.
I tried looking at the stack trace, but it looks kind of useless, unfortunately.
If I take the exact code snippet over to Windows, then it works as expected. Can someone else replicate the crash on OSX? Am I just doing something wrong?
Thanks,
Ian