diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-19 07:06:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-19 07:07:32 +0300 |
commit | 3afe218a7d71ce4bb5d9b661bc966e8c99541184 (patch) | |
tree | 4834aea5f3a08fac6aba2debbf491992ccfa414e /source/blender/editors/sculpt_paint | |
parent | 9f8dd4f9e5c0a397485262ec815a88de4fa6cee4 (diff) |
Cleanup: assign Main, use existing assignments
Avoid accessing inline since it's often used multiple times.
In some cases it was already defined.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_proj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index e5656062969..d3e5859def2 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -6065,7 +6065,8 @@ void paint_proj_stroke_done(void *ps_handle_p) /* use project paint to re-apply an image */ static int texture_paint_camera_project_exec(bContext *C, wmOperator *op) { - Image *image = BLI_findlink(&CTX_data_main(C)->images, RNA_enum_get(op->ptr, "image")); + Main *bmain = CTX_data_main(C); + Image *image = BLI_findlink(&bmain->images, RNA_enum_get(op->ptr, "image")); Scene *scene = CTX_data_scene(C); ViewLayer *view_layer = CTX_data_view_layer(C); ProjPaintState ps = {NULL}; |