Blender Git Commit Log

Git Commits -> Revision 82702db

Revision 82702db by Sergey Sharybin (master)
January 22, 2015, 08:52 (GMT)
Expose shading node shading compatibility to the RNA

This way it is possible to probe shading compatibility of a given node from
python, making things like versioning code much easier to perform.

it's only valid for shading nodes, for other nodes the property also exists
but reads as an empty enum.

To access this compatibilities:

node.shading_compatibility

Commit Details:

Full Hash: 82702db4078768eb4b9a59050b17ab1b537eb48a
Parent Commit: 21eb3ce
Lines Changed: +13, -1

1 Modified Path:

/source/blender/makesrna/intern/rna_nodetree.c (+13, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021