further distinguish between rotation and translation solving

This commit is contained in:
Stefan Tröger
2013-12-21 16:19:54 +01:00
parent 4655b39c6e
commit 3ed4a42be1
20 changed files with 363 additions and 268 deletions

View File

@@ -165,8 +165,16 @@ void Constraint::init(Assembly::ItemAssembly* ass)
};
//all other constraints need poth parts
if(!part1 || !part2)
if(!part1 || !part2) {
Base::Console().Message("Geometry initialisation error: invalid parts\n");
return;
};
//and both geometries
if(!m_first_geom || !m_second_geom) {
Base::Console().Message("Geometry initialisation error: invalid geometries\n");
return;
};
//we may need the orientation
dcm::Direction dir;