added mesh_create_derived_view(ob) to DerivedMesh.c

exactly the same as mesh_create_derived_render(ob) except it uses the view modifier settings.

Added an optional arg to getFromObject to 'render' so you can choose to get the mesh displayed in the 3d view or generate one with render settings.
Solved bug 4612 getFromObject now works with soft body meshes (error was caused by getting the derived mesh from a copy of the object)

removed workaround for softbody bug in object_apply_def.py
This commit is contained in:
2006-09-17 05:15:56 +00:00
parent e472a3d852
commit d89240ba12
5 changed files with 24 additions and 43 deletions

View File

@@ -746,7 +746,7 @@ class Mesh:
@type texMesh: Mesh or None
"""
def getFromObject(name,cage=0):
def getFromObject(name,cage=0, render=0):
"""
Replace the mesh's existing data with the raw mesh data from a Blender
Object. This method supports all the geometry based objects (mesh, text,
@@ -762,6 +762,8 @@ class Mesh:
@param name: name of the Blender object which contains the geometry data.
@type cage: int
@param cage: determines whether the original vertices or derived vertices
@type render: int
@param render: determines whether the render setting for modifiers will be used or not.
(for objects with modifiers) are used. The default is derived vertices.
"""