Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_conversions.c
| Show First 20 Lines • Show All 2,775 Lines • ▼ Show 20 Lines | if (is_island_center) { | ||||
| island_info = editmesh_islands_info_calc(em, &island_info_tot, &island_vert_map, calc_single_islands); | island_info = editmesh_islands_info_calc(em, &island_info_tot, &island_vert_map, calc_single_islands); | ||||
| } | } | ||||
| /* detect CrazySpace [tm] */ | /* detect CrazySpace [tm] */ | ||||
| if (modifiers_getCageIndex(t->scene, tc->obedit, NULL, 1) != -1) { | if (modifiers_getCageIndex(t->scene, tc->obedit, NULL, 1) != -1) { | ||||
| int totleft = -1; | int totleft = -1; | ||||
| if (modifiers_isCorrectableDeformed(t->scene, tc->obedit)) { | if (modifiers_isCorrectableDeformed(t->scene, tc->obedit)) { | ||||
| transform_depsgraph_eval_ensure(t); | |||||
| /* Use evaluated state because we need b-bone cache. */ | /* Use evaluated state because we need b-bone cache. */ | ||||
| Scene *scene_eval = (Scene *)DEG_get_evaluated_id(t->depsgraph, &t->scene->id); | Scene *scene_eval = (Scene *)DEG_get_evaluated_id(t->depsgraph, &t->scene->id); | ||||
| Object *obedit_eval = (Object *)DEG_get_evaluated_id(t->depsgraph, &tc->obedit->id); | Object *obedit_eval = (Object *)DEG_get_evaluated_id(t->depsgraph, &tc->obedit->id); | ||||
| BMEditMesh *em_eval = BKE_editmesh_from_object(obedit_eval); | BMEditMesh *em_eval = BKE_editmesh_from_object(obedit_eval); | ||||
| /* check if we can use deform matrices for modifier from the | /* check if we can use deform matrices for modifier from the | ||||
| * start up to stack, they are more accurate than quats */ | * start up to stack, they are more accurate than quats */ | ||||
| totleft = BKE_crazyspace_get_first_deform_matrices_editbmesh( | totleft = BKE_crazyspace_get_first_deform_matrices_editbmesh( | ||||
| t->depsgraph, scene_eval, obedit_eval, em_eval, | t->depsgraph, scene_eval, obedit_eval, em_eval, | ||||
| ▲ Show 20 Lines • Show All 6,180 Lines • Show Last 20 Lines | |||||