Fixes for MovieClip strip user counter.
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 9 Apr 2012 08:45:51 +0000 (08:45 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 9 Apr 2012 08:45:51 +0000 (08:45 +0000)
commit48d71a40b10865cf6ec60e1f10dbbc2984b17bb9
tree9e1633115ef56064ec5ec4bd6168f211d9c2d21a
parentd5953568c8b3ce1980c4cd872251042c72ac07e9
Fixes for MovieClip strip user counter.
Currently copies behavior of clip and image editors:
- On file load, all strip will reference clip they're using
- On adding new strip, clip would be referenced only if it've got zero user
- On removing strip clip wouldn't be de-referenced to prevent clip editors
  pointing to zero-counted datablocks.
Not actually ideal from human beings point of view, but referencing/dereferencing
clip on each strip add/delete is getting crappy because of current logic of how
clip datablocks are referenced from clip editor (which is designed to work fine with
loading files without loading UI).
source/blender/blenloader/intern/readfile.c
source/blender/editors/space_sequencer/sequencer_add.c