Fix T66630 X-Ray + Subdivision surface Face select problem

This commit is contained in:
Clément Foucault 2019-07-10 12:12:50 +02:00
parent d3b42fc167
commit 6f1190cbf0
Notes: blender-bot 2023-02-14 04:39:18 +01:00
Referenced by issue #66630, X-Ray + Subdivision surface Face select problem
1 changed files with 3 additions and 0 deletions

View File

@ -785,6 +785,9 @@ bool modifiers_usesSubsurfFacedots(struct Scene *scene, Object *ob)
VirtualModifierData virtualModifierData;
ModifierData *md = modifiers_getVirtualModifierList(ob, &virtualModifierData);
int cage_index = modifiers_getCageIndex(scene, ob, NULL, 1);
if (cage_index == -1) {
return false;
}
/* Find first modifier enabled on cage. */
for (int i = 0; md && i < cage_index; i++) {
md = md->next;