| 1997 | } |
| 1998 | |
| 1999 | static Collision GetSelectableInLineSegment(SceneGraph* scenegraph, const LineSegment& l, const TypeEnable& type_enable) { |
| 2000 | std::vector<Collision> collisions; |
| 2001 | GetEditorLineCollisions(scenegraph, l.start, l.end, collisions, type_enable); |
| 2002 | if (!collisions.empty()) { |
| 2003 | return collisions[0]; |
| 2004 | } else { |
| 2005 | return Collision(); |
| 2006 | } |
| 2007 | } |
| 2008 | |
| 2009 | void CalculateGroupString(Object* obj, std::string& str) { |
| 2010 | if (obj->GetType() == _group || obj->GetType() == _prefab) { |
no test coverage detected