Merge pull request #1226 from manongjohn/fix_plastic_tooloption_shortcuts

Fix Plastic Tooloption shortcuts
This commit is contained in:
manongjohn 2023-10-05 18:30:47 -04:00 committed by GitHub
commit fd59a55074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -625,6 +625,7 @@ void ToolOptionsShortcutInvoker::onToolSwitched() {
(tool->getName() == T_Brush && (tool->getName() == T_Brush &&
(tool->getTargetType() & TTool::Vectors))) (tool->getTargetType() & TTool::Vectors)))
pgCount = 2; pgCount = 2;
if (tool->getName() == T_Plastic) pgCount = 5;
for (int pgId = 0; pgId < pgCount; pgId++) { for (int pgId = 0; pgId < pgCount; pgId++) {
TPropertyGroup* pg = tool->getProperties(pgId); TPropertyGroup* pg = tool->getProperties(pgId);
if (!pg) continue; if (!pg) continue;