C API simScaleObjects appears to be incorrect

Report crashes, strange behaviour, or apparent bugs
jacobhuesman
Posts: 3
Joined: 31 Jul 2017, 02:16

C API simScaleObjects appears to be incorrect

Postby jacobhuesman » 22 Aug 2017, 01:05

Hi,

I keep getting compilation errors when using the "simScaleObjects" function in the Regular API. According to the API http://www.coppeliarobotics.com/helpFiles/en/regularApi/simScaleObjects.htm simScaleObjects should require: const simInt* objectHandles,simInt objectCount,simFloat scalingFactor,simBool scalePositionsToo as parameters. However the compilation error I'm getting indicates that it is expecting a const simFloat* for the first argument.

Thanks,
Jacob

coppelia
Site Admin
Posts: 6066
Joined: 14 Dec 2012, 00:25

Re: C API simScaleObjects appears to be incorrect

Postby coppelia » 22 Aug 2017, 08:24

Hello Jacob,

you are right, there is a bug in file programming/include/v_repLib.h. You can simply replace the const simFloat* with const simInt* in that file.

Thanks again!


Return to “Bug reports”

Who is online

Users browsing this forum: No registered users and 6 guests