mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-04 07:46:40 -04:00
Merge branch 'stereo_fix' into 'master'
Fix stereo crash in the editor Closes #7019 See merge request OpenMW/openmw!2431 (cherry picked from commit e9cfc2381fb949e427901463225ac21cef279fbc) 890be1b5 Fix crash in the editor
This commit is contained in:
parent
779ec6e55c
commit
7b3adff1c5
@ -40,11 +40,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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user