SetInt32 fails on ComboBox even if the change occurs

  • Hi all,

    So I stumbled across a bizarre bug (?). On the InitValues() function for my GeDialog I noticed that setting a ComboBox to the default value always returns false, even though it clearly works in the GUI. This is a bit annoying since I'm trying to maintain defensive programming. Am I going wrong somewhere or is this a bug with the API itself? The code is below along with a link the file on GitHub (the project is open source if you need to look around).

    if(!this->SetInt32(CBX_COORDINATE_SYSTEM, CBO_Y_UP))
        return false;

    CBX_COORDINATE_SYSTEM exists in c4d_symbols.h as does CBO_Y_UP.

    Thanks in advanced!

  • Hi,

    I can reproduce this behavior and indeed it looks like a bug. Sorry for the inconvenience. I filed a bug for our development. As far as I can see, it's really just the return value being wrong, so you should be fine by ignoring it until there is a fix.


  • @a_block

    No inconvenience at all, just happy to hear it's not only me! 😄