mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 02:09:41 +00:00
Fix crash in the editor
This commit is contained in:
parent
ad44add658
commit
890be1b590
1 changed files with 8 additions and 5 deletions
|
@ -42,11 +42,14 @@ namespace SceneUtil
|
|||
{
|
||||
auto stateset = getCvDependentStateset(cv);
|
||||
apply(stateset, cv);
|
||||
auto& sm = Stereo::Manager::instance();
|
||||
if (sm.getEye(cv) == Stereo::Eye::Left)
|
||||
applyLeft(stateset, cv);
|
||||
if (sm.getEye(cv) == Stereo::Eye::Right)
|
||||
applyRight(stateset, cv);
|
||||
auto* sm = &Stereo::Manager::instance();
|
||||
if (sm != nullptr)
|
||||
{
|
||||
if (sm->getEye(cv) == Stereo::Eye::Left)
|
||||
applyLeft(stateset, cv);
|
||||
if (sm->getEye(cv) == Stereo::Eye::Right)
|
||||
applyRight(stateset, cv);
|
||||
}
|
||||
|
||||
cv->pushStateSet(stateset);
|
||||
traverse(node, cv);
|
||||
|
|
Loading…
Reference in a new issue