patch [#24424] Python scripts update for API changes

from Filiciss Muhgue (filiciss)
This commit is contained in:
Campbell Barton 2010-10-27 22:15:55 +00:00
parent cbb47c1dac
commit ab404a0f66
3 changed files with 4 additions and 5 deletions

@ -70,7 +70,7 @@ def load(operator, context, filepath, frame_start=0, frame_step=1):
obj.active_shape_key_index = len(obj.data.shape_keys.keys)-1
index = len(obj.data.shape_keys.keys)-1
obj.show_shape_key = True
obj.show_only_shape_key = True
verts = obj.data.shape_keys.keys[len(obj.data.shape_keys.keys)-1].data
@ -78,7 +78,7 @@ def load(operator, context, filepath, frame_start=0, frame_step=1):
for v in verts: # 12 is the size of 3 floats
v.co[:] = unpack('>3f', file.read(12))
#me.update()
obj.show_shape_key = False
obj.show_only_shape_key = False
# insert keyframes

@ -254,7 +254,7 @@ class ShapeTransfer(bpy.types.Operator):
key = ob.add_shape_key(from_mix=False) # we need a rest
key.name = name
ob.active_shape_key_index = len(me.shape_keys.keys) - 1
ob.show_shape_key = True
ob.show_only_shape_key = True
from mathutils.geometry import BarycentricTransform
from mathutils import Vector

@ -632,9 +632,8 @@ class WM_OT_doc_edit(bpy.types.Operator):
def draw(self, context):
layout = self.layout
props = self.properties # XXX, this should not be needed, api problem!
layout.label(text="Descriptor ID: '%s'" % props.doc_id)
layout.prop(props, "doc_new", text="")
layout.prop(self, "doc_new", text="")
def invoke(self, context, event):
wm = context.window_manager