pybullet removeAllParameters (sliders, buttons)

pybullet addUserDebugParameter adds button instead of slider, if min > max.
This commit is contained in:
Erwin Coumans
2020-03-16 21:29:30 -07:00
parent b105764470
commit 27fbbfee7f
7 changed files with 106 additions and 2 deletions
@@ -5644,6 +5644,14 @@ bool PhysicsServerCommandProcessor::processUserDebugDrawCommand(const struct Sha
m_data->m_guiHelper->removeAllUserDebugItems();
serverCmd.m_type = CMD_USER_DEBUG_DRAW_COMPLETED;
}
if (clientCmd.m_updateFlags & USER_DEBUG_REMOVE_ALL_PARAMETERS)
{
m_data->m_guiHelper->removeAllUserParameters();
serverCmd.m_type = CMD_USER_DEBUG_DRAW_COMPLETED;
}
if (clientCmd.m_updateFlags & USER_DEBUG_REMOVE_ONE_ITEM)
{
m_data->m_guiHelper->removeUserDebugItem(clientCmd.m_userDebugDrawArgs.m_itemUniqueId);