- Code: Select all
--- gow-pyprp-1.4.0/src/alc_DrawClasses.py 2008-05-22 23:34:46.000000000 +0200
+++ /Users/cwalther/.blender/scripts/alc_DrawClasses.py 2008-06-28 12:08:53.000000000 +0200
@@ -1606,6 +1606,10 @@
# build up a weight map if neccessary, and fill it with the default value to start with
if len(mesh.getVertGroupNames()) > 0:
WeightCount = 1 # Blender supports only one weight :)
+ else:
+ # I don't know what to with modified meshes and vertex groups, but since we don't have any, let's use the mesh with modifiers applied
+ mesh = Mesh.New()
+ mesh.getFromObject(obj)
# Now, we need to make groups of faces for each assigned material :)
Now, whether this is sufficient for more complex objects than I have in my doodle age, whether it breaks anything else (there may be more things than mesh.getVertGroupNames() that fail when the mesh is not connected to an object), and whether anything better can be done about the vertex groups/WeightCount thing (about which I haven't educated myself yet), these are more difficult questions...