Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-01 20:27:05 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-02 17:03:39 +0300
commitffaf91b5fc03f91e1fc90bd2f1d5dc5aa75656ff (patch)
treea2751ad82d28c37df483ed9269187e7f7de74d1e /source/blender/editors/armature/pose_utils.c
parent51347be24e474a3ad3d38a75d0060ca91b8a9794 (diff)
Pose slide / relax: fix various issues
* Fix operator adjust settings not working. * Fix modal operator not working when invoked from search menu. * Fix tagging to be correct for new depsgraph. * Fix pose relax doing nothing when start and end frames match even if the current frame value is different. * Remove odd 0.3..0.7 limit in adjust operator settings panel.
Diffstat (limited to 'source/blender/editors/armature/pose_utils.c')
-rw-r--r--source/blender/editors/armature/pose_utils.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/source/blender/editors/armature/pose_utils.c b/source/blender/editors/armature/pose_utils.c
index c94ada2942a..a1f763ac57d 100644
--- a/source/blender/editors/armature/pose_utils.c
+++ b/source/blender/editors/armature/pose_utils.c
@@ -220,24 +220,9 @@ void poseAnim_mapping_free(ListBase *pfLinks)
/* ------------------------- */
/* helper for apply() / reset() - refresh the data */
-void poseAnim_mapping_refresh(bContext *C, Scene *scene, Object *ob)
+void poseAnim_mapping_refresh(bContext *C, Scene *UNUSED(scene), Object *ob)
{
- Depsgraph *depsgraph = CTX_data_depsgraph(C);
- bArmature *arm = (bArmature *)ob->data;
-
- /* old optimize trick... this enforces to bypass the depgraph
- * - note: code copied from transform_generics.c -> recalcData()
- */
- /* FIXME: shouldn't this use the builtin stuff? */
- if ((arm->flag & ARM_DELAYDEFORM) == 0) {
- DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); /* sets recalc flags */
- }
- else {
- BKE_pose_where_is(depsgraph, scene, ob);
- }
-
- /* otherwise animation doesn't get updated */
- DEG_id_tag_update(&ob->id, ID_RECALC_COPY_ON_WRITE);
+ DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
WM_event_add_notifier(C, NC_OBJECT | ND_POSE, ob);
}