add support in isDescendantOf for breaking out of recursive parenting cases

This commit is contained in:
Hazim Gazov
2010-08-07 23:41:18 +00:00
parent 2f612dc1a2
commit 15b779fd00
2 changed files with 18 additions and 7 deletions

View File

@@ -130,7 +130,7 @@ public:
// This is a convenience function to check if one object has a
// parent chain up to the category specified by UUID.
BOOL isObjectDescendentOf(const LLUUID& obj_id, const LLUUID& cat_id);
BOOL isObjectDescendentOf(const LLUUID& obj_id, const LLUUID& cat_id, const BOOL break_on_recursion=FALSE);
// Get the object by id. Returns NULL if not found.
// * WARNING: use the pointer returned for read operations - do