From: Joogab Yun Date: Tue, 10 Sep 2019 08:58:30 +0000 (+0900) Subject: Revert "[Tizen] Temporarily revert CameraActor behavior on zero size initialization" X-Git-Tag: accepted/tizen/unified/20190911.111620~11 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=commitdiff_plain;h=779d85a983817171b05c865f5a609340347beab0;ds=sidebyside Revert "[Tizen] Temporarily revert CameraActor behavior on zero size initialization" This reverts commit 403ea1a276edb27965c418e86ab366d3ab3e65ab. --- diff --git a/dali/internal/event/actors/camera-actor-impl.cpp b/dali/internal/event/actors/camera-actor-impl.cpp index 2afd2eb..715781e 100644 --- a/dali/internal/event/actors/camera-actor-impl.cpp +++ b/dali/internal/event/actors/camera-actor-impl.cpp @@ -372,16 +372,16 @@ bool CameraActor::GetInvertYAxis() const void CameraActor::SetPerspectiveProjection( const Size& size ) { - float width = size.width; - float height = size.height; - if( ( size.width < Math::MACHINE_EPSILON_1000 ) || ( size.height < Math::MACHINE_EPSILON_1000 ) ) { - Size stageSize = Dali::Stage::GetCurrent().GetSize(); - width = stageSize.width; - height = stageSize.height; + // Not allowed to set the canvas size to be 0. + DALI_LOG_ERROR( "Canvas size can not be 0\n" ); + return; } + float width = size.width; + float height = size.height; + float nearClippingPlane; float farClippingPlane; float cameraZ;