New options in the Parameter Editor mode for controling the position of stroke thickness.
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Sat, 7 Apr 2012 17:28:09 +0000 (17:28 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Sat, 7 Apr 2012 17:28:09 +0000 (17:28 +0000)
commite94abda66dae7d01260839a7c5c5ff271f3ae33d
treebeba13ff569e188bc6c2a9c21762c9765abd6d09
parent8ea8b6a1baecdbc3271a65cc9089b43aaeae743e
New options in the Parameter Editor mode for controling the position of stroke thickness.

The new options enable a better control on the position of stroke thickness with
respect to stroke backbone geometry.  Three predefined positions are:
* center: thickness is evenly split to the left and right side of the stroke geometry.
* inside: strokes are drawn within object boundary.
* outside: strokes are drawn outside the object boundary.
Another option called "relative" allows users to specify the relative position by a
number between 0 (inside) and 1 (outside).

The thickness position options are applied only to strokes of the edge types SILHOUETTE
and BORDER, since these are the only edge types defined in terms of object boundary.
Strokes of other edge types are always using the "center" option.
release/scripts/freestyle/style_modules/parameter_editor.py
release/scripts/startup/bl_ui/properties_render.py
source/blender/blenkernel/intern/linestyle.c
source/blender/blenloader/intern/readfile.c
source/blender/makesdna/DNA_linestyle_types.h
source/blender/makesrna/intern/rna_linestyle.c