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/space_text/text_ops.c | |
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/space_text/text_ops.c')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 1462cb2cc10..ab1f5f53e7b 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -820,13 +820,14 @@ static int text_refresh_pyconstraints_exec(bContext *UNUSED(C), wmOperator *UNUS { #ifdef WITH_PYTHON # if 0 + Main *bmain = CTX_data_main(C); Text *text = CTX_data_edit_text(C); Object *ob; bConstraint *con; short update; /* check all pyconstraints */ - for (ob = CTX_data_main(C)->objects.first; ob; ob = ob->id.next) { + for (ob = bmain->objects.first; ob; ob = ob->id.next) { update = 0; if (ob->type == OB_ARMATURE && ob->pose) { bPoseChannel *pchan; |