THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/07/2010 at 08:49, xxxxxxxx wrote:
While that is correct, GetDeformCache() may return NULL for other reasons (and the object in question still be affected by a deformer) such as cache not yet built.
A better approach might be to see if the object's children are deformers as an additional test:
Bool deformed = (obj->GetDeformCache() != NULL);
if (!deformed)
{
LONG info;
for (BaseObject* child = obj->GetDown(); child; child = child->GetNext())
{
info = child->GetInfo();
if (child->GetDeformMode() && ((info == OBJECT_MODIFIER) || (info == OBJECT_HIERARCHYMODIFIER)))
{
deformed = TRUE;
break;
}
}
}