Better categorized Technic primitives

Sun, 16 Jun 2013 00:48:09 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sun, 16 Jun 2013 00:48:09 +0300
changeset 294
2892deee4c1b
parent 293
a0ed563e14b2
child 295
a91fa09d686c

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 };

mercurial