Revision: 16932
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16932
Author: aligorith
Date: 2008-10-05 13:59:19 +0200 (Sun, 05 Oct 2008)
Log Message:
-----------
Fixed issue from previous commit with extra frames being pasted (but with no
strokes).
Modified Paths:
--------------
trunk/blender/source/blender/src/editaction_gpencil.c
Modified: trunk/blender/source/blender/src/editaction_gpencil.c
===================================================================
--- trunk/blender/source/blender/src/editaction_gpencil.c 2008-10-05
11:49:09 UTC (rev 16931)
+++ trunk/blender/source/blender/src/editaction_gpencil.c 2008-10-05
11:59:19 UTC (rev 16932)
@@ -560,12 +560,11 @@
/* append stroke to frame */
BLI_addtail(&gpf->strokes,
gpsn);
}
- else {
- // TODO: should remove this
frame if it is new, as it doesn't have any strokes...
- //if (gpf->strokes.first ==
NULL)
- //
gpencil_layer_delframe(gpld, gpf);
- }
}
+
+ /* if no strokes (i.e. new frame) added, free
gpf */
+ if (gpf->strokes.first == NULL)
+ gpencil_layer_delframe(gpld, gpf);
}
/* unapply offset from buffer-frame */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs