Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_ops.c
| Context not available. | |||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_object_types.h" | #include "DNA_object_types.h" | ||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "DNA_curve_types.h" | |||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| Context not available. | |||||
| #include "BKE_editmesh.h" | #include "BKE_editmesh.h" | ||||
| #include "BKE_layer.h" | #include "BKE_layer.h" | ||||
| #include "BKE_scene.h" | #include "BKE_scene.h" | ||||
| #include "BKE_curve.h" | |||||
| #include "DEG_depsgraph.h" | |||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "RNA_define.h" | #include "RNA_define.h" | ||||
| Context not available. | |||||
| # error "loopslide hack removed!" | # error "loopslide hack removed!" | ||||
| #endif /* USE_LOOPSLIDE_HACK */ | #endif /* USE_LOOPSLIDE_HACK */ | ||||
| static void nurbs_uv_transform_exit(Object *obedit) { | |||||
| Curve *cu = obedit->data; | |||||
| Nurb *nu; | |||||
| for (nu=cu->editnurb->nurbs.first; nu; nu=nu->next) { | |||||
| BKE_nurbs_editKnot_propagate_ek2nurb(nu); | |||||
| BKE_nurbs_cached_UV_mesh_clear(nu, true); | |||||
| } | |||||
| DEG_id_tag_update(&obedit->id, ID_RECALC_TRANSFORM); | |||||
| } | |||||
| static void transformops_exit(bContext *C, wmOperator *op) | static void transformops_exit(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Object *obedit = CTX_data_edit_object(C); | |||||
| #ifdef USE_LOOPSLIDE_HACK | #ifdef USE_LOOPSLIDE_HACK | ||||
| transformops_loopsel_hack(C, op); | transformops_loopsel_hack(C, op); | ||||
| #endif | #endif | ||||
| Context not available. | |||||
| MEM_freeN(op->customdata); | MEM_freeN(op->customdata); | ||||
| op->customdata = NULL; | op->customdata = NULL; | ||||
| G.moving = 0; | G.moving = 0; | ||||
| if (obedit && obedit->type==OB_SURF) nurbs_uv_transform_exit(obedit); | |||||
| } | } | ||||
| static int transformops_data(bContext *C, wmOperator *op, const wmEvent *event) | static int transformops_data(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| Context not available. | |||||