Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/curves/intern/curves_ops.cc
| Show First 20 Lines • Show All 954 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| Object &new_surface_ob = *CTX_data_active_object(C); | Object &new_surface_ob = *CTX_data_active_object(C); | ||||
| Mesh &new_surface_mesh = *static_cast<Mesh *>(new_surface_ob.data); | Mesh &new_surface_mesh = *static_cast<Mesh *>(new_surface_ob.data); | ||||
| const char *new_uv_map_name = CustomData_get_active_layer_name(&new_surface_mesh.ldata, | const char *new_uv_map_name = CustomData_get_active_layer_name(&new_surface_mesh.ldata, | ||||
| CD_MLOOPUV); | CD_PROP_FLOAT2); | ||||
| CTX_DATA_BEGIN (C, Object *, selected_ob, selected_objects) { | CTX_DATA_BEGIN (C, Object *, selected_ob, selected_objects) { | ||||
| if (selected_ob->type != OB_CURVES) { | if (selected_ob->type != OB_CURVES) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| Object &curves_ob = *selected_ob; | Object &curves_ob = *selected_ob; | ||||
| Curves &curves_id = *static_cast<Curves *>(curves_ob.data); | Curves &curves_id = *static_cast<Curves *>(curves_ob.data); | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||