Use mjvCamera directly for generating camera string.
PiperOrigin-RevId: 824982264 Change-Id: I0d8760bb27153849c8f4dacb10aa3162f29c2f6e
This commit is contained in:
committed by
Copybara-Service
parent
e1a73f9c4c
commit
7ba0d96d77
@@ -1701,7 +1701,7 @@ void App::RenderingGui() {
|
||||
SetCamera(ui_.camera_idx);
|
||||
}
|
||||
if (ImGui::Button("Copy Camera")) {
|
||||
std::string camera_string = toolbox::CameraToString(&scene);
|
||||
std::string camera_string = toolbox::CameraToString(Data(), &camera_);
|
||||
toolbox::MaybeSaveToClipboard(camera_string);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user