Add update_{hfield,mesh,texture} methods to the passive viewer.
Fixes #812. Fixes #958. Fixes #965. PiperOrigin-RevId: 548181282 Change-Id: I6eb0cd2ce52c66083e83dd08d69e0cfb4178dbba
This commit is contained in:
committed by
Copybara-Service
parent
b5bef1b639
commit
0ccfef7314
@@ -154,6 +154,18 @@ PYBIND11_MODULE(_simulate, pymodule) {
|
||||
simulate.uiloadrequest.fetch_sub(1);
|
||||
},
|
||||
py::call_guard<py::gil_scoped_release>())
|
||||
.def(
|
||||
"update_hfield",
|
||||
[](SimulateWrapper& simulate, int hfieldid) {
|
||||
simulate.UpdateHField(hfieldid);
|
||||
},
|
||||
py::call_guard<py::gil_scoped_release>())
|
||||
.def(
|
||||
"update_texture",
|
||||
[](SimulateWrapper& simulate, int texid) {
|
||||
simulate.UpdateTexture(texid);
|
||||
},
|
||||
py::call_guard<py::gil_scoped_release>())
|
||||
|
||||
.def_property(
|
||||
"droploadrequest",
|
||||
|
||||
Reference in New Issue
Block a user