From 0fa174f03e304ba125bf0cfe040469bac1f6ebe0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 6 Sep 2006 13:15:05 +0000 Subject: [PATCH] Added tangent_v and tangent space modes to python material modes. removed polyfill from Mathutils docs --- source/blender/python/api2_2x/Material.c | 2 ++ source/blender/python/api2_2x/doc/Material.py | 2 ++ source/blender/python/api2_2x/doc/Mathutils.py | 11 ----------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/source/blender/python/api2_2x/Material.c b/source/blender/python/api2_2x/Material.c index 6a9670f90f7..663a3cd45b5 100644 --- a/source/blender/python/api2_2x/Material.c +++ b/source/blender/python/api2_2x/Material.c @@ -355,6 +355,8 @@ static PyObject *Material_ModesDict( void ) PyConstant_Insert(c, "RAYMIRROR", PyInt_FromLong(MA_RAYMIRROR)); PyConstant_Insert(c, "ZTRA", PyInt_FromLong(MA_ZTRA)); PyConstant_Insert(c, "RAYTRANSP", PyInt_FromLong(MA_RAYTRANSP)); + PyConstant_Insert(c, "TANGENT_V", PyInt_FromLong(MA_TANGENT_V)); + PyConstant_Insert(c, "NMAP_TS", PyInt_FromLong(MA_NORMAP_TANG)); } return Modes; diff --git a/source/blender/python/api2_2x/doc/Material.py b/source/blender/python/api2_2x/doc/Material.py index 5c920930170..9dca9b5a9c5 100644 --- a/source/blender/python/api2_2x/doc/Material.py +++ b/source/blender/python/api2_2x/doc/Material.py @@ -64,6 +64,8 @@ Example:: - TANGENTSTR - Uses direction of strands as normal for tangent-shading. - TRANSPSHADOW - Lets Material receive transparent shadows based on material color and alpha. - FULLOSA - Force rendering of all OSA samples. + - TANGENT_V - Use the tangent vector in V direction for shading + - NMAP_TS - Tangent space normal mapping. @type Shaders: readonly dictionary @var Shaders: The available Material Shaders. diff --git a/source/blender/python/api2_2x/doc/Mathutils.py b/source/blender/python/api2_2x/doc/Mathutils.py index 4af601b0618..7546bb5b6d5 100644 --- a/source/blender/python/api2_2x/doc/Mathutils.py +++ b/source/blender/python/api2_2x/doc/Mathutils.py @@ -116,17 +116,6 @@ def LineIntersect(vec1, vec2, vec3, vec4): @return: A tuple with the points on each line respectively closest to the other. """ -def PolyFill(polylines): - """ - Takes a list of polylines and calculates triangles that would fill in the polylines. - Multiple lines can be used to make holes inside a polyline, or fill in 2 seperate lines at once. - @type polylines: List of lists containing vectors, each representing a closed polyline. - @rtype: list - @return: a list if tuples each a tuple of 3 ints representing a triangle indexing the points given. - @note: 2D Vectors will have an assumed Z axis of zero, 4D Vectors W axis is ignored. - """ - - def CopyVec(vector): """ Create a copy of the Vector object.