mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-25 12:39:42 +00:00
Merge branch 'stereo_fix' into 'master'
Fix stereo crash in the editor Closes #7019 See merge request OpenMW/openmw!2431 (cherry picked from commite9cfc2381f
)890be1b5
Fix crash in the editor
This commit is contained in:
parent
779ec6e55c
commit
7b3adff1c5
1 changed files with 8 additions and 5 deletions
|
@ -40,11 +40,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