Пример #1
0
/* Check whether the given object has a modifier in its stack that uses WEIGHT_MCOL CD layer
 * to preview something... Used by DynamicPaint and WeightVG currently. */
int modifiers_isPreview(Object *ob)
{
    ModifierData *md = ob->modifiers.first;

    for (; md; md = md->next) {
        if (modifier_isPreview(md))
            return TRUE;
    }

    return FALSE;
}
Пример #2
0
/* Check whether the given object has a modifier in its stack that uses WEIGHT_MCOL CD layer
 * to preview something... Used by DynamicPaint and WeightVG currently. */
bool modifiers_isPreview(Object *ob)
{
	ModifierData *md = ob->modifiers.first;

	for (; md; md = md->next) {
		if (modifier_isPreview(md))
			return true;
	}

	return false;
}
Пример #3
0
ModifierData *modifiers_getLastPreview(struct Scene *scene, ModifierData *md, int required_mode)
{
    ModifierData *tmp_md = NULL;

    if (required_mode != eModifierMode_Realtime)
        return tmp_md;

    /* Find the latest modifier in stack generating preview. */
    for (; md; md = md->next) {
        if (modifier_isEnabled(scene, md, required_mode) && modifier_isPreview(md))
            tmp_md = md;
    }
    return tmp_md;
}