[Bf-blender-cvs] [723f2b292fc] blender2.8: Fix T52186: Crash on bevel
Sergey Sharybin
noreply at git.blender.org
Wed Jul 26 16:39:28 CEST 2017
Commit: 723f2b292fcbf27cd3eee4bf5372f5276aa14b0f
Author: Sergey Sharybin
Date: Wed Jul 26 16:31:53 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB723f2b292fcbf27cd3eee4bf5372f5276aa14b0f
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.
===================================================================
M source/blender/editors/transform/transform_conversions.c
===================================================================
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c
index 94d5ad4473a..06c38a8abcc 100644
--- a/source/blender/editors/transform/transform_conversions.c
+++ b/source/blender/editors/transform/transform_conversions.c
@@ -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);
More information about the Bf-blender-cvs
mailing list