src/ldDocument.cpp

changeset 1003
31873c3cbdbc
parent 998
5be0ce31ce60
child 1011
4fdd74a04790
--- a/src/ldDocument.cpp	Sun Oct 04 06:31:36 2015 +0300
+++ b/src/ldDocument.cpp	Sun Oct 04 06:43:02 2015 +0300
@@ -442,6 +442,18 @@
 						obj->setHeight (tokens[8].toLong());
 						return obj;
 					}
+					else if (tokens[2] == "BEZIER_CURVE")
+					{
+						CheckTokenCount (tokens, 16);
+						CheckTokenNumbers (tokens, 3, 15);
+						LDBezierCurve* obj = LDSpawn<LDBezierCurve>();
+						obj->setColor (StringToNumber (tokens[3]));
+
+						for (int i = 0; i < 4; ++i)
+							obj->setVertex (i, ParseVertex (tokens, 4 + (i * 3)));
+
+						return obj;
+					}
 				}
 
 				// Just a regular comment:

mercurial