"Repeat" property of NLA action strips not updated when splitting #91299
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#91299
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1650/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.49
Blender Version
Broken: version: 2.93.2, branch: master, commit date: 2021-08-03 05:58, hash:
1eb06de260
Worked: (exists at least since 2.6)
Short description of error
The "Repeat" property under the Action Clip panel is not updated when splitting strips. So changing the repeat value after a split will cause the strip to "jump back" to the original length.
Exact steps for others to reproduce the error
Added subscriber: @tianer2820-2
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
Can confirm, cant think of a situation where this wouldnt make sense.
Not sure if this would really be considered a bug (I would lean towards calling it one).
Looks like a #good_first_issue .
Added subscriber: @thibaulltt
Hi, I worked on this as my very first issue, and I think I have a working, albeit slightly behaviour-changing solution.
Here is the new behaviour of the split operation on an action strip in regards to its repeat property :
splitaframe
& contained within[strip->actstart, strip->actend]
)repeats - modf(repeats, 1.0)
) :actstart
andactend
properties to 'split' them atsplitaframe
splitaframe
, split this repeat in two according to the same rules laid out abovestart
,actstart
,end
, andactend
properties to reflect the end of the stripSince the NLA strips are users of an action clip (according to the code & the documentation), this means the newly-split NLA strips will each consume only a part of the source action clip. This enables the user to specify a repeat property of 2.0 on a sub-split, and have only this part of the action clip repeated.
Here are the things I made sure to do in the code, and tested :
NLATrack
linked list consistency (all newly created splits are linked to each other, and the extremities are linked to the original strip'sprev
andnext
pointers)Here are some things I'm not too sure of, and I'd like a bit of guidance about :
I have done all the code and have a patch (nearly) ready, I have yet to run the
clang-format
utility on it :)I'll assign the task to myself and eagerly wait for feedback !
Oh and one last thing : my work is based on the
blender-v2.93-release
branch, should I base it onmaster
instead ?Hi, I see what you mean.
This is the behavior I expected originally:
(the drawing is bad but should show what I mean)
However, Blender currently does not allow a strip to start from the middle of an action while repeating the entire action (which is the case of strip2 in the drawing) due to how it saves the strip data.
So the most "clear" way to solve this I can think of would be to change how Blender saves NLA strips, but that might be too much work and is unnecessary.
I will prefer the second way you proposed, that "we only split in two the repeat where the cursor is placed, and separate the other whole repeats as separate strips". And maybe group the new strips with meta-strips to make the resulting strips clearer.
@tianer2820-2 Alright. I simply misunderstood your original intention ! I'll work on updating the fix to more closely match the expected behaviour. I'll keep you updated.
Added subscriber: @BClark
@ArtisticBee-Fani did you have any luck looking at https://archive.blender.org/developer/differential/0014/0014534/index.html and seeing if it was something you could continue working on
I do the test for the result of the code.