From af38845280943d2caee90723d51709ce3bf4594d Mon Sep 17 00:00:00 2001 From: Levi Burner Date: Thu, 21 Mar 2024 12:47:56 -0400 Subject: [PATCH] [Python Viewer] clear load error on successful reload, fixes #1116 --- python/mujoco/viewer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/mujoco/viewer.py b/python/mujoco/viewer.py index 107ee83f..7e01d1bd 100644 --- a/python/mujoco/viewer.py +++ b/python/mujoco/viewer.py @@ -199,6 +199,9 @@ def _reload( path = load_tuple[2] if len(load_tuple) == 3 else '' simulate.load(m, d, path) + # Make sure any load_error message is cleared + simulate.load_error = '' + if notify_loaded: notify_loaded()