Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/curve/editcurve_paint.c
| Show First 20 Lines • Show All 580 Lines • ▼ Show 20 Lines | if (is_invoke) { | ||||
| if (ELEM(NULL, cdd->vc.ar, cdd->vc.rv3d, cdd->vc.v3d, cdd->vc.win, cdd->vc.scene)) { | if (ELEM(NULL, cdd->vc.ar, cdd->vc.rv3d, cdd->vc.v3d, cdd->vc.win, cdd->vc.scene)) { | ||||
| MEM_freeN(cdd); | MEM_freeN(cdd); | ||||
| BKE_report(op->reports, RPT_ERROR, "Unable to access 3D viewport"); | BKE_report(op->reports, RPT_ERROR, "Unable to access 3D viewport"); | ||||
| return false; | return false; | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| cdd->vc.bmain = CTX_data_main(C); | cdd->vc.bmain = CTX_data_main(C); | ||||
| cdd->vc.depsgraph = CTX_data_depsgraph(C); | cdd->vc.depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| cdd->vc.scene = CTX_data_scene(C); | cdd->vc.scene = CTX_data_scene(C); | ||||
| cdd->vc.view_layer = CTX_data_view_layer(C); | cdd->vc.view_layer = CTX_data_view_layer(C); | ||||
| cdd->vc.obedit = CTX_data_edit_object(C); | cdd->vc.obedit = CTX_data_edit_object(C); | ||||
| } | } | ||||
| op->customdata = cdd; | op->customdata = cdd; | ||||
| const CurvePaintSettings *cps = &cdd->vc.scene->toolsettings->curve_paint_settings; | const CurvePaintSettings *cps = &cdd->vc.scene->toolsettings->curve_paint_settings; | ||||
| ▲ Show 20 Lines • Show All 637 Lines • Show Last 20 Lines | |||||