ObjectData::GetDimension() called with nullptr?



  • On 16/12/2016 at 06:11, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   18 
    Platform:   Windows  ; Mac  ;  Mac OSX  ; 
    Language(s) :     C++  ;

    ---------
    Hi,

    we have the problem that our object's

    GetDimension(BaseObject* op, Vector* mp, Vector* rad)
    

    function is sometimes called by Cinema with nullptr for mp and rad parameters (sometimes only one of them is nullptr, sometimes both). That prevents us from passing proper values for the object's bounding box, which then again causes more problems...

    Is there any reason Cinema might call that function with null pointers as parameters?

    Cheers,
    Frank



  • On 19/12/2016 at 10:21, xxxxxxxx wrote:

    Hi Frank,

    What's the type of your object? Is it a point object?
    If yes, ObjectData::GetDimension() can be called by Cinema with nullptr for mp (to retrieve only rad ) or nullptr for rad (to retrieve only mp ).

    Are you sure both of them are nullptr sometimes? In what cases/situations? Are there 3rd party plugins involved?



  • On 03/01/2017 at 07:18, xxxxxxxx wrote:

    Hi Yannick,

    Yes, sometimes the function is called with nullptr for both parameters, mp and rad.
    There are also third party plugins involved, but due to the lack of C4D debug symbols I can't tell where the calls originate from.

    Cheers,
    Frank



  • On 04/01/2017 at 04:11, xxxxxxxx wrote:

    Hi Frank,

    Without a test scene or scenario it's hard to check this.
    Do you get nullptr for both mp and rad parameters without third party plugins?
    Could you send us a simple test scene to sdk_support[at]maxon.net?



  • On 06/01/2017 at 04:33, xxxxxxxx wrote:

    I'll try to further isolate the issue and then send you something.
    If I don't further post on this issue, you can assume that it's one of the 3rd party plugins that makes the faulty call.

    Cheers,
    Frank


Log in to reply