Merge pull request #2597 from erwincoumans/master

made char* in addUserDebugParameter const
This commit is contained in:
erwincoumans 2020-01-24 09:45:35 -08:00 committed by GitHub
commit 9ac1dd6194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1503,7 +1503,7 @@ bool b3RobotSimulatorClientAPI_NoDirect::changeDynamics(int bodyUniqueId, int li
return true;
}
int b3RobotSimulatorClientAPI_NoDirect::addUserDebugParameter(char* paramName, double rangeMin, double rangeMax, double startValue)
int b3RobotSimulatorClientAPI_NoDirect::addUserDebugParameter(const char* paramName, double rangeMin, double rangeMax, double startValue)
{
b3PhysicsClientHandle sm = m_data->m_physicsClientHandle;
if (sm == 0)

View File

@ -786,7 +786,7 @@ public:
bool changeDynamics(int bodyUniqueId, int linkIndex, struct b3RobotSimulatorChangeDynamicsArgs &args);
int addUserDebugParameter(char *paramName, double rangeMin, double rangeMax, double startValue);
int addUserDebugParameter(const char *paramName, double rangeMin, double rangeMax, double startValue);
double readUserDebugParameter(int itemUniqueId);