Remove redundant mjv_defaultScene call since its called by mjv_makeScene
PiperOrigin-RevId: 810355812 Change-Id: I2bc112e24c3adaca616604ebc5c1e3e3c494eb59
This commit is contained in:
committed by
Copybara-Service
parent
6aa06d2f43
commit
bf918ccf40
@@ -22,6 +22,8 @@
|
||||
|
||||
namespace mujoco::toolbox {
|
||||
|
||||
static constexpr int kMaxGeom = 2000;
|
||||
|
||||
Renderer::Renderer(MakeContextFn make_context_fn)
|
||||
: make_context_fn_(make_context_fn) {
|
||||
}
|
||||
@@ -38,8 +40,7 @@ void Renderer::Init(const mjModel* model) {
|
||||
}
|
||||
|
||||
make_context_fn_(model, &render_context_);
|
||||
mjv_defaultScene(&scene_);
|
||||
mjv_makeScene(model, &scene_, 2000);
|
||||
mjv_makeScene(model, &scene_, kMaxGeom);
|
||||
initialized_ = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user