Add mjs_getParent to retrieve the parent body of an object.
PiperOrigin-RevId: 715794859 Change-Id: Ib9792787cdb966f579938dde3f94ebabca8ef1fc
This commit is contained in:
committed by
Copybara-Service
parent
10c7207cea
commit
05d4c3d670
@@ -9828,6 +9828,22 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
|
||||
),
|
||||
doc='Find child body by name.',
|
||||
)),
|
||||
('mjs_getParent',
|
||||
FunctionDecl(
|
||||
name='mjs_getParent',
|
||||
return_type=PointerType(
|
||||
inner_type=ValueType(name='mjsBody'),
|
||||
),
|
||||
parameters=(
|
||||
FunctionParameterDecl(
|
||||
name='element',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='mjsElement'),
|
||||
),
|
||||
),
|
||||
),
|
||||
doc='Get parent body.',
|
||||
)),
|
||||
('mjs_findFrame',
|
||||
FunctionDecl(
|
||||
name='mjs_findFrame',
|
||||
|
||||
Reference in New Issue
Block a user