Blender Git Loki

Git Commits -> Revision 610a759

Revision 610a759 by Joshua Leung (master)
January 12, 2011, 01:17 (GMT)
Patch [#24763] NLA Track & Strip methods
Submitted by: Dan Eicher (dna)

<quote>
Adds:

AnimData.nla_tracks.new(prev)
* (optional) prev -- add new track after this track

AnimData.nla_tracks.remove(track)

AnimData.nla_tracks.active(track)
* (optional) track -- track to set active
* returns active track

NlaTrack.strips.new(name, start, action)
NOTE: fails if the strip can't fit in the track as opposed to the
operator which will create a new track and add the strip to that.
* name -- name for new strip
* start -- start frame of new strip
* action -- action to assign to strip

NlaTrack.strips.remove(strip)
</quote>

---

I've resolved the issue (noted in the original patch) regarding the
validation of the created strip by creating and using a "dummy
AnimData" block to solve the missing dependencies.

Commit Details:

Full Hash: 610a759ecc6e1070eb5e8b4fb5ae63d01d645554
SVN Revision: 34270
Parent Commit: 144fb8e
Lines Changed: +159, -2

2 Modified Paths:

/source/blender/makesrna/intern/rna_animation.c (+66, -1) (Diff)
/source/blender/makesrna/intern/rna_nla.c (+93, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021