Raise error when binding to a removed element.
PiperOrigin-RevId: 774462737 Change-Id: I820c0e1c010ae9fbf6d9667c3364d4b65bf21002
This commit is contained in:
committed by
Copybara-Service
parent
419cdf1ff3
commit
a00bfa819c
@@ -1411,8 +1411,6 @@ MJAPI void mju_taskJoin(mjTask* task);
|
||||
MJAPI mjsElement* mjs_attach(mjsElement* parent, const mjsElement* child,
|
||||
const char* prefix, const char* suffix);
|
||||
|
||||
// Detach but not delete object corresponding to the given element, return 0 on success.
|
||||
MJAPI int mjs_detach(mjSpec* spec, mjsElement* element);
|
||||
|
||||
//---------------------------------- Tree elements -------------------------------------------------
|
||||
|
||||
@@ -1440,7 +1438,7 @@ MJAPI mjsLight* mjs_addLight(mjsBody* body, const mjsDefault* def);
|
||||
// Add frame to body.
|
||||
MJAPI mjsFrame* mjs_addFrame(mjsBody* body, mjsFrame* parentframe);
|
||||
|
||||
// Delete object corresponding to the given element, return 0 on success.
|
||||
// Detach but not delete object corresponding to the given element, return 0 on success.
|
||||
MJAPI int mjs_delete(mjSpec* spec, mjsElement* element);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user