From 97956744ef12571fc41bd09c7800065a25a1ee94 Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 4 May 2021 16:41:10 +0300 Subject: [PATCH] Bos #24226, pb #3: Clipping faces texture is lost. --- src/OCCViewer/OCCViewer_Utilities.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OCCViewer/OCCViewer_Utilities.cxx b/src/OCCViewer/OCCViewer_Utilities.cxx index d57f33785..506b9dc15 100644 --- a/src/OCCViewer/OCCViewer_Utilities.cxx +++ b/src/OCCViewer/OCCViewer_Utilities.cxx @@ -43,7 +43,9 @@ Handle(Image_PixMap) OCCViewer_Utilities::imageToPixmap( const QImage& anImage ) Handle(Image_PixMap) aPixmap = new Image_PixMap(); if ( !anImage.isNull() ) { aPixmap->InitTrash( Image_PixMap::ImgBGRA, anImage.width(), anImage.height() ); +#if OCC_VERSION_LARGE < 0x07050000 aPixmap->SetTopDown( Standard_True ); +#endif const uchar* aImageBytes = anImage.bits(); -- 2.39.2