Fixed hot-spot display for 3d modes
Also set left/right culling masks (standard mask no effect when 3d rendering is enabled).
This commit is contained in:
parent
2d145d3251
commit
85185b56c5
1 changed files with 6 additions and 0 deletions
|
@ -477,9 +477,15 @@ void CameraGroup::setCameraCullMasks(Node::NodeMask nm)
|
|||
continue;
|
||||
if (info->farCamera.valid() && info->farCamera->getNodeMask() != 0) {
|
||||
info->camera->setCullMask(nm & ~simgear::BACKGROUND_BIT);
|
||||
info->camera->setCullMaskLeft(nm & ~simgear::BACKGROUND_BIT);
|
||||
info->camera->setCullMaskRight(nm & ~simgear::BACKGROUND_BIT);
|
||||
info->farCamera->setCullMask(nm);
|
||||
info->farCamera->setCullMaskLeft(nm);
|
||||
info->farCamera->setCullMaskRight(nm);
|
||||
} else {
|
||||
info->camera->setCullMask(nm);
|
||||
info->camera->setCullMaskLeft(nm);
|
||||
info->camera->setCullMaskRight(nm);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue