diff --git a/src/plugins/interactive_view_control/InteractiveViewControl.cc b/src/plugins/interactive_view_control/InteractiveViewControl.cc index a101f4896..0177af3e3 100644 --- a/src/plugins/interactive_view_control/InteractiveViewControl.cc +++ b/src/plugins/interactive_view_control/InteractiveViewControl.cc @@ -91,7 +91,16 @@ void InteractiveViewControlPrivate::OnRender() scene->NodeByIndex(i)); if (cam) { - if (cam->Name().find("scene::Camera") != std::string::npos) + bool isUserCamera = false; + try + { + isUserCamera = std::get(cam->UserData("user-camera")); + } + catch (std::bad_variant_access &) + { + continue; + } + if (isUserCamera) { this->camera = cam; igndbg << "InteractiveViewControl plugin is moving camera ["