Skip to content

Commit f44c219

Browse files
yuvaltassacopybara-github
authored andcommitted
Add mjv_copyModel to copy mjModel, skipping large arrays not required for abstract visualization.
This functionality is meant for fast copying of `mjModel` when synchronizing the visualization state, as in the Python passive viewer. PiperOrigin-RevId: 699199743 Change-Id: Idb71dbf8702c5445626a779d6972e4f2d5d85f63
1 parent 94f7407 commit f44c219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dm_control/autowrap/header_parsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def _nested_ifn_else(ifn_, pred, else_, endif, match_if_true, match_if_false):
9595
# ------------------------------------------------------------------------------
9696
(LPAREN, RPAREN, LBRACK, RBRACK, LBRACE, RBRACE, SEMI, COMMA, EQUAL, FSLASH,
9797
BSLASH) = list(map(pp.Suppress, "()[]{};,=/\\"))
98-
X = (pp.Keyword("X") | pp.Keyword("XMJV")).suppress()
98+
X = (pp.Keyword("X") | pp.Keyword("XMJV") | pp.Keyword("XNV")).suppress()
9999
EOL = pp.LineEnd().suppress()
100100

101101
# Comments, continuation.

0 commit comments

Comments
 (0)