Hiding/unhiding NLA strip doesn't update the 3D viewport [PATCH INCLUDED] #42697
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#42697
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Ubuntu Linux 14.10, GeForce GTX 970
Blender Version
Broken: 2.72b, also tested on
b9d9df9810
Short description of error
Hiding or unhiding an NLA strip doesn't update the 3D viewport.
Exact steps for others to reproduce the error
The attached patch 0002-NLA-Fix-Hiding-unhiding-NLA-strip-doesn-t-update-the.patch sends a notification that the scene has been updated, fixing this issue.
Changed status to: 'Open'
Added subscriber: @sybrenstuvel
PS: Another way to solve this would be to let the 3D viewport listen to the
NC_ANIMATION | ND_NLA | NA_EDITED
notifications that are already being sent out. If that is preferred, please let me know and I'll send in another patch that does this.Note that, because of this code in wm_event_system.c function
wm_event_do_notifiers
around line 290:we need to send
NC_SCENE | ND_FRAME
; without it, animation data isn't updated properly. We could also updatewm_event_do_notifiers
to setdo_anim=true
in other cases, for example when the category isNC_ANIMATION
. That would actually be my preferred solution, but I don't know what would break/horribly slow down as a result.Added subscribers: @ideasman42, @JulianEisel
Hey @sybrenstuvel,
thanks for the report, the patch and the research. The patch works fine for me.
@ideasman42, would you mind checking the patch?
Added subscribers: @JoshuaLeung, @Sergey
NLA is more @JoshuaLeung's area.
The patch doesn't seems to be correct tho, you're forcing all the animation to be evaluated. Think you need to tag the particular animation to be evaluated instead. @JoshuaLeung, am i right here?
@Sergey: The
NC_ANIMATION
notification was already in the Blender source. If I should change theNULL
in that line to something else, that's fine, but it's a different issue than what I intended to fix with this patch.You shouldn't send
NC_SCENE | ND_FRAME
notifier unless the frame actually changes.Good point, I'll update the patch to check that the (un)hidden NLA strip contains the current frame.
Updated patch: 0003-NLA-Fix-Hiding-unhiding-NLA-strip-doesn-t-update-the.patch
This issue was referenced by
e93990dfc5
Changed status from 'Open' to: 'Resolved'
Closed by commit
e93990dfc5
.I've just committed an alternative fix to master. As mentioned by Sergey,
NC_SCENE | ND_FRAME
should only be sent when the frame actually changes (i.e. when your operator changes the current frame). For animation channels, we have another mechanism (albeit only around for about 2-3 releases) which is better to use for such cases.Anyways, thanks for your efforts in tracking down and providing a patch for this, even if we didn't ultimately use it :)