Skip to content

Commit 6205981

Browse files
committed
Fix issue 10826.
1 parent e2a99d2 commit 6205981

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/viz/src/widget.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ double cv::viz::Widget::getRenderingProperty(int property) const
202202
#else
203203
case IMMEDIATE_RENDERING: std::cerr << "this property has no effect" << std::endl; break;
204204
#endif
205+
case AMBIENT: value = actor->GetProperty()->GetAmbient(); break;
206+
case LIGHTING: value = actor->GetProperty()->GetLighting(); break;
205207
case FONT_SIZE:
206208
{
207209
vtkTextActor* text_actor = vtkTextActor::SafeDownCast(actor);

0 commit comments

Comments
 (0)