[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16932] trunk/blender/source/blender/src/ editaction_gpencil.c: Fixed issue from previous commit with extra frames being pasted ( but with no strokes).
Joshua Leung
aligorith at gmail.com
Sun Oct 5 13:59:20 CEST 2008
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 */
More information about the Bf-blender-cvs
mailing list