Page MenuHome

3D view not refreshed immediatelly after pasting key frame in dope sheet window
Closed, ResolvedPublic

Description

System Information
Win7/64, Nvidia GTX 750 Ti

Blender Version
2.75a official and Blender-2.76.0-git.4aad17c-AMD64

Short description of error
See title.

Exact steps for others to reproduce the error

  1. Open attached file
  2. In the dope sheet window at the top, select the key frame for the X location.
  3. Copy the key to the clipboard (Ctrl+C).
  4. Navigate to frame 10.
  5. Paste (Ctrl+V): The position of the cube is not updated immediatelly in the 3D view. You have to navigate forth and back to refresh it. (minor issue)

Event Timeline

Willi (willi) raised the priority of this task from to 90.
Willi (willi) updated the task description. (Show Details)
Willi (willi) edited a custom field.
Willi (willi) added a subscriber: Willi (willi).
Julian Eisel (Severin) lowered the priority of this task from 90 to 50.Sep 29 2015, 7:00 PM

@Joshua Leung (aligorith), proposing fix:

diff --git a/source/blender/editors/animation/keyframes_general.c b/source/blender/editors/animation/keyframes_general.c
index 3642c07..f0d9c48 100644
--- a/source/blender/editors/animation/keyframes_general.c
+++ b/source/blender/editors/animation/keyframes_general.c
@@ -955,6 +955,7 @@ short paste_animedit_keys(bAnimContext *ac, ListBase *anim_data,
                aci = animcopybuf.first;
                
                paste_animedit_keys_fcurve(fcu, aci, offset, merge_mode, false);
+               ale->update |= ANIM_UPDATE_DEFAULT;
        }
        else {
                /* from selected channels