Skip to content

Commit 48e3b53

Browse files
authored
Merge pull request #4240 from nickbianco/scholz2015_path_produce_forces
Clear via point and obstacle indexes in `Scholz2015GeometryPath::extendAddToSystem()`
2 parents 2f1bdfc + 8caab0a commit 48e3b53

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

OpenSim/Simulation/Model/Scholz2015GeometryPath.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,12 @@ void Scholz2015GeometryPath::extendAddToSystem(
287287
SimTK::MultibodySystem& system) const {
288288
Super::extendAddToSystem(system);
289289

290+
// First, we need to clear the via point and obstacle indexes so that
291+
// repeated calls to addToSystem() do not add the same via points and
292+
// obstacles to the list of indexes multiple times.
293+
_viaPointIndexes.clear();
294+
_obstacleIndexes.clear();
295+
290296
const PathPoint& origin = getOrigin();
291297
const PathPoint& insertion = getInsertion();
292298
SimTK::CableSubsystem& cables = system.updCableSubsystem();

dependencies/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ AddDependency(NAME ezc3d
185185
AddDependency(NAME simbody
186186
DEFAULT ON
187187
GIT_URL https://github.com/simbody/simbody.git
188-
GIT_TAG f9ab12cbad9d0da106473259d34c50577f934f49
188+
GIT_TAG 7f35622b3c5daac919fc39a2865498c03c553e53
189189
CMAKE_ARGS -DBUILD_EXAMPLES:BOOL=OFF
190190
-DBUILD_TESTING:BOOL=OFF
191191
${SIMBODY_EXTRA_CMAKE_ARGS})

0 commit comments

Comments
 (0)