Clean up the intra-package import lines.

This commit is contained in:
Bill Currie 2011-09-21 19:13:01 +09:00
parent 84f65a0171
commit c3b358f470
2 changed files with 5 additions and 7 deletions

View file

@ -23,9 +23,8 @@ import bpy
from bpy_extras.object_utils import object_data_add from bpy_extras.object_utils import object_data_add
from mathutils import Vector,Matrix from mathutils import Vector,Matrix
from . import quakepal from .quakepal import palette
from . import mdl from .mdl import MDL
MDL = mdl.MDL
def export_mdl(operator, context, filepath): def export_mdl(operator, context, filepath):
return {'FINISHED'} return {'FINISHED'}

View file

@ -23,9 +23,8 @@ import bpy
from bpy_extras.object_utils import object_data_add from bpy_extras.object_utils import object_data_add
from mathutils import Vector,Matrix from mathutils import Vector,Matrix
from . import quakepal from .quakepal import palette
from . import mdl from .mdl import MDL
MDL = mdl.MDL
def make_verts(mdl, framenum, subframenum=0): def make_verts(mdl, framenum, subframenum=0):
frame = mdl.frames[framenum] frame = mdl.frames[framenum]
@ -74,7 +73,7 @@ def load_skins(mdl):
d = skin.pixels d = skin.pixels
for j in range(mdl.skinheight): for j in range(mdl.skinheight):
for k in range(mdl.skinwidth): for k in range(mdl.skinwidth):
c = quakepal.palette[d[j * mdl.skinwidth + k]] c = palette[d[j * mdl.skinwidth + k]]
# quake textures are top to bottom, but blender images # quake textures are top to bottom, but blender images
# are bottom to top # are bottom to top
l = ((mdl.skinheight - 1 - j) * mdl.skinwidth + k) * 4 l = ((mdl.skinheight - 1 - j) * mdl.skinwidth + k) * 4