diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-07-10 13:12:50 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-07-10 13:13:08 +0300 |
commit | 6f1190cbf0ea9e1134e9594f135c0c6e99bdcfc3 (patch) | |
tree | da7427fdd7ef16cc19db425c32489a8eb9b079b0 /source/blender/blenkernel | |
parent | d3b42fc167e548655ade53ecaa5c3a11b8ef6a81 (diff) |
Fix T66630 X-Ray + Subdivision surface Face select problem
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/modifier.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c index 813b2d0469c..c23fe30d311 100644 --- a/source/blender/blenkernel/intern/modifier.c +++ b/source/blender/blenkernel/intern/modifier.c @@ -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; |