| 969 | } |
| 970 | |
| 971 | void Scene3DConfigPanel::updateSelectedLayerPane() { |
| 972 | config_host_->clear(); |
| 973 | if (bound_dock_ == nullptr) { |
| 974 | return; |
| 975 | } |
| 976 | const auto selected = selectedTopicId(); |
| 977 | if (!selected.has_value()) { |
| 978 | return; |
| 979 | } |
| 980 | ISceneLayer* layer = bound_dock_->layerFor(*selected); |
| 981 | if (layer == nullptr) { |
| 982 | return; |
| 983 | } |
| 984 | config_host_->setConfigWidget(layer->createConfigWidget(config_host_)); |
| 985 | updateParamsToolbarState(); |
| 986 | } |
| 987 | |
| 988 | void Scene3DConfigPanel::onCopyParams() { |
| 989 | if (bound_dock_ == nullptr) { |
nothing calls this directly
no test coverage detected