Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2008-10-07 01:41:20 +0400
committerMartin Poirier <theeth@yahoo.com>2008-10-07 01:41:20 +0400
commit160609bce8dda83c3af1bedb7f5e29a18a686b73 (patch)
tree8d1586e184fd51f0a5f1e3dffc6b6b8511bc79c5
parent64527fa81d2b2136234821b9b7481b552502484c (diff)
Grease Pencil Bugfix
When converting to armature, don't flag the first bone of each stroke as connected.
-rw-r--r--source/blender/src/gpencil.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/gpencil.c b/source/blender/src/gpencil.c
index f6703fbe66b..1c16e833d78 100644
--- a/source/blender/src/gpencil.c
+++ b/source/blender/src/gpencil.c
@@ -937,7 +937,10 @@ static void gp_stroke_to_bonechain (bGPDlayer *gpl, bGPDstroke *gps, bArmature *
BLI_addtail(bones, ebo);
- ebo->flag |= BONE_CONNECTED;
+ if (i > 0)
+ {
+ ebo->flag |= BONE_CONNECTED;
+ }
ebo->weight= 1.0F;
ebo->dist= 0.25F;
ebo->xwidth= 0.1;