Skip to content

Commit

Permalink
Rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Mar 17, 2020
1 parent 8e05853 commit 93426cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/cpp/ControllerContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,12 @@ ControllerContainer::CreateController(const int32_t aControllerIndex, const int3
CreationContextPtr create = m.context.lock();
controller.transform = Transform::Create(create);
controller.pointer = Pointer::Create(create);
controller.pointer->SetVisible(true);
if (aControllerIndex != m.gazeIndex) {
if ((m.models.size() >= aModelIndex) && m.models[aModelIndex]) {
controller.transform->AddNode(m.models[aModelIndex]);
controller.beamToggle = vrb::Toggle::Create(create);
controller.beamToggle->ToggleAll(true);
if (aBeamTransform.IsIdentity()) {
controller.beamParent = controller.beamToggle;
} else {
Expand All @@ -215,7 +217,6 @@ ControllerContainer::CreateController(const int32_t aControllerIndex, const int3
controller.beamToggle->AddNode(beamTransform);
}
controller.transform->AddNode(controller.beamToggle);
controller.beamToggle->ToggleAll(false);
if (m.beamModel && controller.beamParent) {
controller.beamParent->AddNode(m.beamModel);
}
Expand Down

0 comments on commit 93426cc

Please sign in to comment.