[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22281] trunk/blender: [#19206] Fix MD2 Vertex Normal Export
Campbell Barton
ideasman42 at gmail.com
Fri Aug 7 00:24:15 CEST 2009
Revision: 22281
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22281
Author: campbellbarton
Date: 2009-08-07 00:24:14 +0200 (Fri, 07 Aug 2009)
Log Message:
-----------
[#19206] Fix MD2 Vertex Normal Export
from Calvin Loncaric (marvinx03)
[#18965] Blender Load and Run need fully qualified specs
[#18966] getMaterials not used
from Roger Wickes (roger)
Modified Paths:
--------------
trunk/blender/release/scripts/md2_export.py
trunk/blender/source/blender/python/api2_2x/doc/Blender.py
trunk/blender/source/blender/python/api2_2x/doc/Object.py
Modified: trunk/blender/release/scripts/md2_export.py
===================================================================
--- trunk/blender/release/scripts/md2_export.py 2009-08-06 22:11:33 UTC (rev 22280)
+++ trunk/blender/release/scripts/md2_export.py 2009-08-06 22:24:14 UTC (rev 22281)
@@ -923,7 +923,8 @@
maxdot = dot;
maxdotindex = j;
- md2.frames[frame_counter].vertices[vert_counter].lightnormalindex=maxdotindex+2
+ # See patch [#19206], gives good info on this line below.
+ md2.frames[frame_counter].vertices[vert_counter].lightnormalindex=maxdotindex
del maxdot, maxdotindex
del new_x, new_y, new_z
Modified: trunk/blender/source/blender/python/api2_2x/doc/Blender.py
===================================================================
--- trunk/blender/source/blender/python/api2_2x/doc/Blender.py 2009-08-06 22:11:33 UTC (rev 22280)
+++ trunk/blender/source/blender/python/api2_2x/doc/Blender.py 2009-08-06 22:24:14 UTC (rev 22281)
@@ -150,6 +150,7 @@
@param filename: the pathname to the desired file. If 'filename'
isn't given or if it contains the substring '.B.blend', the default
.B.blend file is loaded.
+ Cannot use relative qualifier (//). use cleanpath(expandpath(filespec)).
@warn: loading a new .blend file removes the current data in Blender. For
safety, this function saves the current data as an auto-save file in
@@ -196,6 +197,8 @@
@param script: the name of an available Blender Text (use L{Text.Get}() to
get a complete list) or the full pathname to a Python script file in the
system.
+ Cannot use relative qualifier (//). use cleanpath(expandpath(filespec)).
+
@note: the script is executed in its own context -- with its own global
dictionary -- as if it had been executed from the Text Editor or chosen
from a menu.
Modified: trunk/blender/source/blender/python/api2_2x/doc/Object.py
===================================================================
--- trunk/blender/source/blender/python/api2_2x/doc/Object.py 2009-08-06 22:11:33 UTC (rev 22280)
+++ trunk/blender/source/blender/python/api2_2x/doc/Object.py 2009-08-06 22:24:14 UTC (rev 22281)
@@ -851,6 +851,8 @@
of being ignored (default way). See L{NMesh.NMesh.getMaterials}.
@rtype: list of Material Objects
@return: list of Material Objects assigned to the object.
+ @warn. Not used much. To get a list of the materials assigned to the object,
+ use mat=ob.getData(mesh=1).materials instead
"""
def getMatrix(space = 'worldspace'):
More information about the Bf-blender-cvs
mailing list