Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_conversions.c
| Show First 20 Lines • Show All 2,479 Lines • ▼ Show 20 Lines | static void createTransEditVerts(TransInfo *t) | ||||
| int cd_vert_bweight_offset = -1; | int cd_vert_bweight_offset = -1; | ||||
| bool use_topology = (me->editflag & ME_EDIT_MIRROR_TOPO) != 0; | bool use_topology = (me->editflag & ME_EDIT_MIRROR_TOPO) != 0; | ||||
| struct TransIslandData *island_info = NULL; | struct TransIslandData *island_info = NULL; | ||||
| int island_info_tot; | int island_info_tot; | ||||
| int *island_vert_map = NULL; | int *island_vert_map = NULL; | ||||
| DEG_evaluation_context_init_from_scene(&eval_ctx, | DEG_evaluation_context_init_from_scene(&eval_ctx, | ||||
| t->scene, t->scene_layer, | t->scene, t->scene_layer, t->engine, | ||||
| DAG_EVAL_VIEWPORT); | DAG_EVAL_VIEWPORT); | ||||
| /* Even for translation this is needed because of island-orientation, see: T51651. */ | /* Even for translation this is needed because of island-orientation, see: T51651. */ | ||||
| const bool is_island_center = (t->around == V3D_AROUND_LOCAL_ORIGINS); | const bool is_island_center = (t->around == V3D_AROUND_LOCAL_ORIGINS); | ||||
| /* Original index of our connected vertex when connected distances are calculated. | /* Original index of our connected vertex when connected distances are calculated. | ||||
| * Optional, allocate if needed. */ | * Optional, allocate if needed. */ | ||||
| int *dists_index = NULL; | int *dists_index = NULL; | ||||
| ▲ Show 20 Lines • Show All 3,055 Lines • ▼ Show 20 Lines | static void set_trans_object_base_flags(TransInfo *t) | ||||
| BKE_scene_base_flag_to_objects(t->scene_layer); | BKE_scene_base_flag_to_objects(t->scene_layer); | ||||
| /* Make sure depsgraph is here. */ | /* Make sure depsgraph is here. */ | ||||
| DEG_scene_relations_update(G.main, t->scene); | DEG_scene_relations_update(G.main, t->scene); | ||||
| /* handle pending update events, otherwise they got copied below */ | /* handle pending update events, otherwise they got copied below */ | ||||
| EvaluationContext eval_ctx; | EvaluationContext eval_ctx; | ||||
| DEG_evaluation_context_init_from_scene(&eval_ctx, | DEG_evaluation_context_init_from_scene(&eval_ctx, | ||||
| t->scene, t->scene_layer, | t->scene, t->scene_layer, t->engine, | ||||
| DAG_EVAL_VIEWPORT); | DAG_EVAL_VIEWPORT); | ||||
| for (base = sl->object_bases.first; base; base = base->next) { | for (base = sl->object_bases.first; base; base = base->next) { | ||||
| if (base->object->recalc & OB_RECALC_ALL) { | if (base->object->recalc & OB_RECALC_ALL) { | ||||
| /* TODO(sergey): Ideally, it's not needed. */ | /* TODO(sergey): Ideally, it's not needed. */ | ||||
| BKE_object_handle_update(&eval_ctx, t->scene, base->object); | BKE_object_handle_update(&eval_ctx, t->scene, base->object); | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,724 Lines • Show Last 20 Lines | |||||