Blender Git Commit Log

Git Commits -> Revision 7915d72

Revision 7915d72 by Tamito Kajiyama (master)
July 7, 2014, 07:19 (GMT)
Per-material line color settings for Freestyle.

New properties 'line_color' and 'line_priority' are added to Material ID data blocks.

The 'line_color' property allows users to specify a per-material line color that can be
used as a Freestyle line color through Material color modifiers of line style settings.

The new line color property is intended to provide a solution for line color
stylization when a proper Freestyle support for Cycles is implemented (likely
as part of the upcoming Blender 2.72 release; see Patch D632). Materials in
Cycles are usually set up using shader nodes, and Freestyle won't be capable
of retrieving colors and other properties from node-based materials any soon.

The new line color property of materials addresses this foreseen limitation by
providing artists with an intuitive alternative mean to specify line colors on a
per-material basis independently from node trees.

The 'line_priority' property gives users a way to control line colors at material
boundaries. When a line is drawn along a feature edge at material boundaries,
one of the two materials on both sides of the edge has to be picked up to
determine the line color. So far there was no way to control this selection
(which was in effect at random). Now the material with a higher line color
priority will be selected.

The new per-material line settings are shown in the new Freestyle Line tab in
the Material context of the Properties window (only when Freestyle is enabled).

Commit Details:

Full Hash: 7915d7277ac8c605f016f30f943080556244fb59
Parent Commit: dc40928
Lines Changed: +293, -36

14 Modified Paths:

/release/scripts/freestyle/modules/freestyle/functions.py (+9, -2) (Diff)
/release/scripts/freestyle/modules/parameter_editor.py (+16, -5) (Diff)
/release/scripts/startup/bl_ui/properties_freestyle.py (+33, -1) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/linestyle.c (+3, -3) (Diff)
/source/blender/blenloader/intern/versioning_270.c (+12, -0) (Diff)
/source/blender/blenloader/intern/versioning_defaults.c (+7, -0) (Diff)
/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp (+2, -0) (Diff)
/source/blender/freestyle/intern/python/BPy_FrsMaterial.cpp (+83, -9) (Diff)
/source/blender/freestyle/intern/scene_graph/FrsMaterial.h (+92, -5) (Diff)
/source/blender/makesdna/DNA_linestyle_types.h (+4, -0) (Diff)
/source/blender/makesdna/DNA_material_types.h (+4, -1) (Diff)
/source/blender/makesrna/intern/rna_linestyle.c (+13, -9) (Diff)
/source/blender/makesrna/intern/rna_material.c (+14, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021