|
|
@ -42,11 +42,14 @@ namespace SceneUtil
|
|
|
|
{
|
|
|
|
{
|
|
|
|
auto stateset = getCvDependentStateset(cv);
|
|
|
|
auto stateset = getCvDependentStateset(cv);
|
|
|
|
apply(stateset, cv);
|
|
|
|
apply(stateset, cv);
|
|
|
|
auto& sm = Stereo::Manager::instance();
|
|
|
|
auto* sm = &Stereo::Manager::instance();
|
|
|
|
if (sm.getEye(cv) == Stereo::Eye::Left)
|
|
|
|
if (sm != nullptr)
|
|
|
|
applyLeft(stateset, cv);
|
|
|
|
{
|
|
|
|
if (sm.getEye(cv) == Stereo::Eye::Right)
|
|
|
|
if (sm->getEye(cv) == Stereo::Eye::Left)
|
|
|
|
applyRight(stateset, cv);
|
|
|
|
applyLeft(stateset, cv);
|
|
|
|
|
|
|
|
if (sm->getEye(cv) == Stereo::Eye::Right)
|
|
|
|
|
|
|
|
applyRight(stateset, cv);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cv->pushStateSet(stateset);
|
|
|
|
cv->pushStateSet(stateset);
|
|
|
|
traverse(node, cv);
|
|
|
|
traverse(node, cv);
|
|
|
|