mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-20 07:50:45 +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):
|
def build_shape_keys(mdl):
|
||||||
mdl.keys = []
|
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):
|
for i, frame in enumerate(mdl.frames):
|
||||||
frame = mdl.frames[i]
|
frame = mdl.frames[i]
|
||||||
if frame.type:
|
if frame.type:
|
||||||
|
@ -362,13 +362,13 @@ def build_actions(mdl):
|
||||||
data.append((k, co))
|
data.append((k, co))
|
||||||
set_keys (act, data)
|
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 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
|
i = 0
|
||||||
while i < len(mdl.frames):
|
while i < len(mdl.frames):
|
||||||
if mdl.frames[i].type:
|
if mdl.frames[i].type:
|
||||||
|
|
Loading…
Reference in a new issue