C API simScaleObjects appears to be incorrect

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

C API simScaleObjects appears to be incorrect

Post by 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/helpFil ... bjects.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: 6183
Joined: 14 Dec 2012, 00:25

Re: C API simScaleObjects appears to be incorrect

Post by 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!

Post Reply