rename rna function obj.make_display_list(scene) --> obj.update(scene)

also added 3 optional bool arguments, 'object', 'data' & 'time', matching the object recalc flags.
This commit is contained in:
Campbell Barton
2010-06-09 08:24:31 +00:00
parent 3e56c4dda1
commit eb081dd991
4 changed files with 62 additions and 54 deletions

View File

@@ -2011,9 +2011,8 @@ def write(filename, batch_objects = None, \
if ob_arms_orig_rest:
for ob_base in bpy.data.objects:
#if ob_base.type == 'Armature':
ob_base.make_display_list(scene)
# ob_base.makeDisplayList()
if ob_base.type == 'ARMATURE':
ob_base.update(scene)
# This causes the makeDisplayList command to effect the mesh
scene.set_frame(scene.frame_current)
@@ -2187,9 +2186,7 @@ def write(filename, batch_objects = None, \
if ob_arms_orig_rest:
for ob_base in bpy.data.objects:
if ob_base.type == 'ARMATURE':
# if ob_base.type == 'Armature':
ob_base.make_display_list(scene)
# ob_base.makeDisplayList()
ob_base.update(scene)
# This causes the makeDisplayList command to effect the mesh
scene.set_frame(scene.frame_current)
# Blender.Set('curframe', Blender.Get('curframe'))