mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Do a tiny bit of cleanup.
This commit is contained in:
parent
b00e865d4c
commit
af4a91accf
1 changed files with 7 additions and 7 deletions
|
@ -309,7 +309,7 @@ def make_shape_key(mdl, framenum, subframenum=0):
|
|||
|
||||
def build_shape_keys(mdl):
|
||||
mdl.keys = []
|
||||
mdl.obj.shape_key_add("Basis") # FIXME do I want this?
|
||||
mdl.obj.shape_key_add("Basis")
|
||||
for i, frame in enumerate(mdl.frames):
|
||||
frame = mdl.frames[i]
|
||||
if frame.type:
|
||||
|
@ -362,13 +362,13 @@ def build_actions(mdl):
|
|||
data.append((k, co))
|
||||
set_keys (act, data)
|
||||
|
||||
def get_base(name):
|
||||
i = 0
|
||||
while i < len(name) and name[i] not in "0123456789":
|
||||
i += 1
|
||||
return name[:i]
|
||||
|
||||
def merge_frames(mdl):
|
||||
def get_base(name):
|
||||
i = 0
|
||||
while i < len(name) and name[i] not in "0123456789":
|
||||
i += 1
|
||||
return name[:i]
|
||||
|
||||
i = 0
|
||||
while i < len(mdl.frames):
|
||||
if mdl.frames[i].type:
|
||||
|
|
Loading…
Reference in a new issue