Fixed own error in setting user counter to mask when changing clip editor's mask.
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 31 Jul 2012 20:58:48 +0000 (20:58 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 31 Jul 2012 20:58:48 +0000 (20:58 +0000)
source/blender/editors/space_clip/clip_editor.c

index 349303afbf225c8062f3b3068d1ea6e1589b505f..5e4ef1aa24a8d2cdcf74f5459936aa5ed1bcbe0a 100644 (file)
@@ -518,7 +518,7 @@ void ED_space_clip_set_mask(bContext *C, SpaceClip *sc, Mask *mask)
        sc->mask_info.mask = mask;
 
        if (sc->mask_info.mask && sc->mask_info.mask->id.us == 0) {
-               sc->clip->id.us = 1;
+               sc->mask_info.mask->id.us = 1;
        }
 
        if (C) {