Skip to content

Commit b7ad95b

Browse files
committed
Merge pull request opencv#10836 from csukuangfj:fix-10826
2 parents 2c8da29 + 6205981 commit b7ad95b

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)