[Bf-blender-cvs] [7f02390] master: Text3d: font family dupli-objects now follow rotation of the curve path
Campbell Barton
noreply at git.blender.org
Sun Jan 5 16:06:16 CET 2014
Commit: 7f0239033b3b2d632da0654c1727ac5fc13d9ce6
Author: Campbell Barton
Date: Mon Jan 6 02:05:14 2014 +1100
https://developer.blender.org/rB7f0239033b3b2d632da0654c1727ac5fc13d9ce6
Text3d: font family dupli-objects now follow rotation of the curve path
===================================================================
M source/blender/blenkernel/intern/anim.c
===================================================================
diff --git a/source/blender/blenkernel/intern/anim.c b/source/blender/blenkernel/intern/anim.c
index e108df0..b8a6262 100644
--- a/source/blender/blenkernel/intern/anim.c
+++ b/source/blender/blenkernel/intern/anim.c
@@ -1668,6 +1668,16 @@ static void font_duplilist(ListBase *lb, Scene *scene, Object *par, int persiste
mul_m4_v3(pmat, vec);
copy_m4_m4(obmat, par->obmat);
+
+ if (UNLIKELY(ct->rot != 0.0f)) {
+ float rmat[4][4];
+
+ zero_v3(obmat[3]);
+ unit_m4(rmat);
+ rotate_m4(rmat, 'Z', -ct->rot);
+ mul_m4_m4m4(obmat, obmat, rmat);
+ }
+
copy_v3_v3(obmat[3], vec);
new_dupli_object(lb, ob, obmat, par->lay, persistent_id, level, a, OB_DUPLIVERTS, flag);
More information about the Bf-blender-cvs
mailing list