Sun, 16 Jun 2013 00:48:09 +0300
Better categorized Technic primitives
data/primitive-categories.cfg | file | annotate | diff | comparison | revisions | |
src/primitives.cpp | file | annotate | diff | comparison | revisions |
--- 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
--- 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 };