From 5766be7f72339e6ab06e271b7b79daffa42ef589 Mon Sep 17 00:00:00 2001 From: aymanhab Date: Sun, 10 Mar 2024 16:00:48 -0700 Subject: [PATCH 1/2] Handle property name change from GeometryPath to path in visualization --- .../view/src/org/opensim/threejs/ModelVisualizationJson.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gui/opensim/view/src/org/opensim/threejs/ModelVisualizationJson.java b/Gui/opensim/view/src/org/opensim/threejs/ModelVisualizationJson.java index 3bcaa834b..ec7b9a9e5 100644 --- a/Gui/opensim/view/src/org/opensim/threejs/ModelVisualizationJson.java +++ b/Gui/opensim/view/src/org/opensim/threejs/ModelVisualizationJson.java @@ -1407,7 +1407,7 @@ public void propagateGeometryPathCommandsToPathPoints(Force force, AbstractPrope else { JSONObject pathpointCommand = (JSONObject) lastCommand.clone(); if (force.hasVisualPath()){ - GeometryPath gPath = GeometryPath.safeDownCast(force.getPropertyByName("GeometryPath").getValueAsObject()); + GeometryPath gPath = GeometryPath.safeDownCast(force.getPropertyByName("path").getValueAsObject()); pathpointCommand.put("objectUuid", getFirstPathPointUUID4GeometryPath(gPath).toString()); commands.add(pathpointCommand); From 4176e39ec5c7792a6fc339bd2386c16f2a540d05 Mon Sep 17 00:00:00 2001 From: Ayman Habib Date: Sun, 10 Mar 2024 22:14:15 -0700 Subject: [PATCH 2/2] Update CHANGELOG.md Describe fix to issue 1494 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d88ca23a8..f666f122a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ GitHub issues or pull requests that are related to the items below. If there is no issue or pull request related to the change, then we may provide the commit. +v4.6 +====== +- Fix issue [#1494](https://github.com/opensim-org/opensim-gui/issues/1494): Changing muscle path color throws exception. + v4.5 ====== - Fix issue [#1378](https://github.com/opensim-org/opensim-gui/issues/1378): In Static Optimization Tool, dialog box has wrong title for "Directory" in output section.