Showing the changes to interface/src/Menu.cpp (1 of 6 files). Show all
Unified · Split
| @@ -538,10 +538,8 @@ Menu::Menu() { · 537 unmodified lines | ||
| 538 | 538 | addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::ComputeBlendshapes, 0, true, |
| 539 | 539 | DependencyManager::get<ModelBlender>().data(), SLOT(setComputeBlendshapes(bool))); |
| 540 | 540 | |
| 541 | − action = addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::MaterialProceduralShaders, 0, false); | |
| 542 | − connect(action, &QAction::triggered, [action] { | |
| 543 | − ModelMeshPartPayload::enableMaterialProceduralShaders = action->isChecked(); | |
| 544 | − }); | |
| 541 | + addCheckableActionToQMenuAndActionHash(renderOptionsMenu, MenuOption::MaterialProceduralShaders, 0, RenderScriptingInterface::getInstance()->getProceduralMaterialsEnabled(), | |
| 542 | + RenderScriptingInterface::getInstance(), SLOT(setProceduralMaterialsEnabled(bool))); | |
| 545 | 543 | |
| 546 | 544 | { |
| 547 | 545 | auto drawStatusConfig = qApp->getRenderEngine()->getConfiguration()->getConfig<render::DrawStatus>("RenderMainView.DrawStatus"); |