export_fbx.py - support scene start/end frames, fpx, mist settings, better default camera writing.

BPyObject.py - function for getting an objects armature, look at both parent and modifier.
editmesh_add.c and BPyAddMesh.py - check for multires
filesel.c, Append/Link had a bug where files linked in, didnt have the LIB_APPEND_TAG unset, and appending these into a new blend file would link instead.
BKE_library.h, library.c - utility functions for flagging listbases flag_all_listbases_ids and and flag_listbase_ids
This commit is contained in:
2007-04-20 18:48:30 +00:00
parent 94b7743dd3
commit c7b1e5c11d
8 changed files with 361 additions and 1183 deletions

View File

@@ -1,6 +1,7 @@
import Blender
from Blender.Window import EditMode, GetCursorPos, GetViewQuat
import bpy
import BPyMessages
def add_mesh_simple(name, verts, edges, faces):
'''
@@ -26,12 +27,16 @@ def add_mesh_simple(name, verts, edges, faces):
# We are in mesh editmode
if EditMode():
me = ob_act.getData(mesh=1)
if me.multires:
BPyMessages.Error_NoMeshMultiresEdit()
return
# Add to existing mesh
# must exit editmode to modify mesh
EditMode(0)
me = ob_act.getData(mesh=1)
me.sel = False
vert_offset = len(me.verts)