Sparse ten_J and ten_J_colind memory
PiperOrigin-RevId: 868834376 Change-Id: Iec92d9e09e3134666895e54a78cb02439d74a4de
This commit is contained in:
committed by
Copybara-Service
parent
b466829482
commit
336e1026a4
@@ -100,6 +100,7 @@ void SaveToWebp(int width, int height, const std::byte* data,
|
||||
|
||||
const void* GetValue(const mjModel* model, const mjData* data,
|
||||
const char* field, int index) {
|
||||
MJDATA_POINTERS_PREAMBLE(model);
|
||||
#define X(TYPE, NAME, NR, NC) \
|
||||
if (!std::strcmp(#NAME, field) && !std::strcmp(#TYPE, "mjtNum")) { \
|
||||
if (index >= 0 && index < model->NR * NC) { \
|
||||
|
||||
Reference in New Issue
Block a user