# HG changeset patch # User Santeri Piippo # Date 1371332889 -10800 # Node ID 2892deee4c1b33ed50b5c4656d260f18a82ee1e4 # Parent a0ed563e14b23f3ef84abd40bc80bb68ba0cae11 Better categorized Technic primitives diff -r a0ed563e14b2 -r 2892deee4c1b data/primitive-categories.cfg --- a/data/primitive-categories.cfg Sun Jun 16 00:10:11 2013 +0300 +++ b/data/primitive-categories.cfg Sun Jun 16 00:48:09 2013 +0300 @@ -92,12 +92,21 @@ Stud Groups f:stug.*\.dat -Gear Teeth +Technic Axles / Axleholes +f:axle.*\.dat +f:axl[0-9e]ho[le0-9]+\.dat + +Technic Pins +f:connect[0-9]*\.dat +f:confric[0-9]*\.dat + +Technic Pinholes +f:peghole[0-9]*\.dat +f:npegho[le0-9]+\.dat +f:connhol[0-9e]\.dat +f:beamhol[0-9e]\.dat + +Technic Other f:tooth.*\.dat f:tootb.*\.dat - -Technic -f:axle.*\.dat -f:axl[0-9e]ho[le0-9]+\.dat -f:peghol.*\.dat t:Technic .* \ No newline at end of file diff -r a0ed563e14b2 -r 2892deee4c1b src/primitives.cpp --- a/src/primitives.cpp Sun Jun 16 00:10:11 2013 +0300 +++ b/src/primitives.cpp Sun Jun 16 00:48:09 2013 +0300 @@ -233,7 +233,8 @@ type = PrimitiveCategory::Filename; } else if (cmd == "t") { type = PrimitiveCategory::Title; - } + } else + continue; QRegExp regex (line.mid (colon + 1)); PrimitiveCategory::RegexEntry entry = { regex, type };