From d0621c1daee9c477216fa3fd7944858c1b1c968b Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 14 Jan 2013 16:05:47 +0000 Subject: Fix #33863: cycles viewport render crash entering edit mode on an object with a subsurf modifier. --- source/blender/modifiers/intern/MOD_subsurf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/modifiers/intern/MOD_subsurf.c') diff --git a/source/blender/modifiers/intern/MOD_subsurf.c b/source/blender/modifiers/intern/MOD_subsurf.c index e97f4191e6f..2af192d83f5 100644 --- a/source/blender/modifiers/intern/MOD_subsurf.c +++ b/source/blender/modifiers/intern/MOD_subsurf.c @@ -103,7 +103,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, subsurf_flags |= SUBSURF_USE_RENDER_PARAMS; if (isFinalCalc) subsurf_flags |= SUBSURF_IS_FINAL_CALC; - if (ob->flag & OB_MODE_EDIT) + if (ob->mode & OB_MODE_EDIT) subsurf_flags |= SUBSURF_IN_EDIT_MODE; result = subsurf_make_derived_from_derived(derivedData, smd, NULL, subsurf_flags); -- cgit v1.2.3