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:
authorTon Roosendaal <ton@blender.org>2004-08-29 13:21:52 +0400
committerTon Roosendaal <ton@blender.org>2004-08-29 13:21:52 +0400
commit4edfc3a919482bd9738ae6503e96bdd8edf9a995 (patch)
tree57e7fdca74e8408bbe6abb02829a4b4f6f258d16 /source/blender/blenloader
parent19ba12946c0c4a43f6f27f09b14c44b2e59c6442 (diff)
Feature for Curve objects in Blender; 'tapering'.
Next to the "BevOb" button you now have a "TaperOb" button to give a name of a curve object which defines the width of extrusion of the 'BevObj' along the curve. The TaperOb curve typically is horizontal, where the height denotes the width. Important rules; - Only the firste curve in TaperObj is evaluated - the first width is left, last width is right - it scales the width of normal extrusions based on evaluating the taper curve; which means sharp corners in taper curve won't be easily visible (That latter feature could be improved by extrusing based on the points in the taper curve; this is a *lot* more work)
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 4f10130c3b7..d72921f1c03 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -1781,6 +1781,7 @@ static void lib_link_curve(FileData *fd, Main *main)
for(a=0; a<cu->totcol; a++) cu->mat[a]= newlibadr_us(fd, cu->id.lib, cu->mat[a]);
cu->bevobj= newlibadr(fd, cu->id.lib, cu->bevobj);
+ cu->taperobj= newlibadr(fd, cu->id.lib, cu->taperobj);
cu->textoncurve= newlibadr(fd, cu->id.lib, cu->textoncurve);
cu->vfont= newlibadr_us(fd, cu->id.lib, cu->vfont);
@@ -4535,6 +4536,7 @@ static void expand_curve(FileData *fd, Main *mainvar, Curve *cu)
expand_doit(fd, mainvar, cu->key);
expand_doit(fd, mainvar, cu->ipo);
expand_doit(fd, mainvar, cu->bevobj);
+ expand_doit(fd, mainvar, cu->taperobj);
expand_doit(fd, mainvar, cu->textoncurve);
}