diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-04 15:57:31 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-04 16:18:47 +0300 |
commit | aa0380a6a53033a23b589cbb21708855b8523f49 (patch) | |
tree | 6a552151d4a2d74f7d87a83c9045234ad4ae6055 /source/blender/blenkernel/intern/action.c | |
parent | 78fde19e682cff3e3c281675cc285da4a0b8c6da (diff) |
Cleanup: Remove G.main from framechange_poses_clear_unkeyed()
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index c06a1a8106c..9823a501092 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -1009,7 +1009,7 @@ void BKE_pose_tag_update_constraint_flags(bPose *pose) * This should only be called on frame changing, when it is acceptable to * do this. Otherwise, these flags should not get cleared as poses may get lost. */ -void framechange_poses_clear_unkeyed(void) +void framechange_poses_clear_unkeyed(Main *bmain) { Object *ob; bPose *pose; @@ -1017,7 +1017,7 @@ void framechange_poses_clear_unkeyed(void) /* This needs to be done for each object that has a pose */ /* TODO: proxies may/may not be correctly handled here... (this needs checking) */ - for (ob = G.main->object.first; ob; ob = ob->id.next) { + for (ob = bmain->object.first; ob; ob = ob->id.next) { /* we only need to do this on objects with a pose */ if ((pose = ob->pose)) { for (pchan = pose->chanbase.first; pchan; pchan = pchan->next) { |