From dffd6233d37dd886f910ca95d9f176724b6fc4ff Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Sun, 14 Apr 2013 14:00:06 +0200 Subject: [PATCH] [DEV] add camacity at vec2 --- etk/math/Vector2D.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etk/math/Vector2D.cpp b/etk/math/Vector2D.cpp index 6aa08ee..f839fe9 100644 --- a/etk/math/Vector2D.cpp +++ b/etk/math/Vector2D.cpp @@ -187,11 +187,14 @@ namespace etk { { m_floats[0] = 0; m_floats[1] = 0; + //TK_DEBUG("start parsing od vec2 with \"" << str << "\""); if (str.StartWith("(")) { + //TK_DEBUG(" start with ("); sscanf(str.c_str(), "(%f,%f)", &m_floats[0], &m_floats[1]); } else { - sscanf(str.c_str(), "(%f,%f)", &m_floats[0], &m_floats[1]); + sscanf(str.c_str(), "%f,%f", &m_floats[0], &m_floats[1]); } + //TK_DEBUG(" result " << *this); } };