Replace glfw.get_time with time.time in the Python viewer timing logic.
PiperOrigin-RevId: 563134207 Change-Id: Ic548701fc78336d8d87e94ea48833f94ee6395b8
This commit is contained in:
committed by
Copybara-Service
parent
ba66bd4f8b
commit
48d0bfde44
@@ -31,6 +31,7 @@
|
||||
|
||||
namespace mujoco::python {
|
||||
namespace {
|
||||
using UIAdapter = mujoco::GlfwAdapter;
|
||||
namespace py = ::pybind11;
|
||||
|
||||
template <typename T, int N>
|
||||
@@ -196,7 +197,7 @@ PYBIND11_MODULE(_simulate, pymodule) {
|
||||
py::object pert, bool fully_managed,
|
||||
py::object key_callback) {
|
||||
return std::make_unique<SimulateWrapper>(
|
||||
std::make_unique<UIAdapterWithPyCallback<mujoco::GlfwAdapter>>(
|
||||
std::make_unique<UIAdapterWithPyCallback<UIAdapter>>(
|
||||
key_callback),
|
||||
scn, cam, opt, pert, fully_managed);
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user