History

more graphics options

HifiExperiments committed 2 years ago

Commit d4ca3d51 parent 3dad0f16 files · +245 −52Browse files

Showing the changes to interface/src/Menu.cpp (1 of 6 files). Show all

Unified · Split

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