mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-08 12:30:20 +08:00
ios: fixed background camera not shown in landscape mode (iPhone)
This commit is contained in:
@@ -428,7 +428,7 @@ int Scene::Render(const float * uvsTransformed, glm::mat4 arViewMatrix, glm::mat
|
||||
|
||||
if(renderBackgroundCamera)
|
||||
{
|
||||
if(projectionMatrix[0][0] > arProjectionMatrix[0][0]-0.2)
|
||||
if(projectionMatrix[0][0] > arProjectionMatrix[0][0]-0.3)
|
||||
{
|
||||
projectionMatrix = arProjectionMatrix;
|
||||
viewMatrix = arViewMatrix;
|
||||
|
||||
@@ -1424,7 +1424,7 @@ class ViewController: GLKViewController, ARSessionDelegate, RTABMapObserver, UIP
|
||||
func newScan()
|
||||
{
|
||||
print("databases.size() = \(databases.size())")
|
||||
if(databases.count >= 10 && !mReviewRequested)
|
||||
if(databases.count >= 5 && !mReviewRequested && self.depthSupported)
|
||||
{
|
||||
SKStoreReviewController.requestReviewInCurrentScene()
|
||||
mReviewRequested = true
|
||||
|
||||
Reference in New Issue
Block a user