From b276466832288f63724d034a52dd07b63396f008 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 21 May 2015 08:16:45 +0300 Subject: [PATCH] refs #545: z layers regressions --- src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx | 2 +- src/HYDROGUI/HYDROGUI_ZLayers.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx b/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx index 1034b656..40256a51 100644 --- a/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx +++ b/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx @@ -371,7 +371,7 @@ void HYDROGUI_OCCDisplayer::SetZLayer( const OCCViewer_Viewer* theViewer, const Handle(HYDROData_Entity)& theObject, const int theZLayerId ) { - if ( !theViewer || ( theZLayerId < 0 ) ) { + if ( !theViewer /*|| ( theZLayerId < 0 )*/ ) { return; } diff --git a/src/HYDROGUI/HYDROGUI_ZLayers.cxx b/src/HYDROGUI/HYDROGUI_ZLayers.cxx index edeb89d9..ac479434 100644 --- a/src/HYDROGUI/HYDROGUI_ZLayers.cxx +++ b/src/HYDROGUI/HYDROGUI_ZLayers.cxx @@ -39,7 +39,8 @@ void SetPrsZLayer( const Handle_PrsMgr_PresentableObject& thePresentableObject, void SetZLayerSettings( const Handle_V3d_Viewer& theViewer3d, int theLayerId, bool theIsOrdered ) { - if ( theViewer3d.IsNull() || theLayerId < 0 ) { + if ( theViewer3d.IsNull() /*|| theLayerId < 0*/ ) + { return; } -- 2.39.2