Fix T52186: Crash on bevel

bContext is not always available in transform, so need to use explicit
scene and scene layer to create evaluation context from.
This commit is contained in:
2017-07-26 16:31:53 +02:00
parent 22342a7647
commit 723f2b292f

View File

@@ -2482,7 +2482,9 @@ static void createTransEditVerts(TransInfo *t)
int island_info_tot;
int *island_vert_map = NULL;
CTX_data_eval_ctx(t->context, &eval_ctx);
DEG_evaluation_context_init_from_scene(&eval_ctx,
t->scene, t->scene_layer,
DAG_EVAL_VIEWPORT);
/* Even for translation this is needed because of island-orientation, see: T51651. */
const bool is_island_center = (t->around == V3D_AROUND_LOCAL_ORIGINS);