From 6205981235b57fa70f23f8a7f228257f6ac19f1e Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sun, 11 Feb 2018 16:01:21 +0800 Subject: [PATCH] Fix issue 10826. --- modules/viz/src/widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/viz/src/widget.cpp b/modules/viz/src/widget.cpp index b324a4e26c..bf8e8be7de 100644 --- a/modules/viz/src/widget.cpp +++ b/modules/viz/src/widget.cpp @@ -202,6 +202,8 @@ double cv::viz::Widget::getRenderingProperty(int property) const #else case IMMEDIATE_RENDERING: std::cerr << "this property has no effect" << std::endl; break; #endif + case AMBIENT: value = actor->GetProperty()->GetAmbient(); break; + case LIGHTING: value = actor->GetProperty()->GetLighting(); break; case FONT_SIZE: { vtkTextActor* text_actor = vtkTextActor::SafeDownCast(actor);