Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
MAPA fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackoalan committed Mar 24, 2017
1 parent 6398010 commit c3db26f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion blender/hecl/mapa.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ def cook(writebuf, mesh_obj):
obj.matrix_world[3][0], obj.matrix_world[3][1], obj.matrix_world[3][2], obj.matrix_world[3][3]))

def draw(layout, context):
pass
obj = context.active_object
if obj and obj.retro_mappable_type != -1:
layout.prop(obj, 'retro_mappable_type', text='Type')
layout.prop(obj, 'retro_mappable_unk', text='Unk')
layout.prop(obj, 'retro_mappable_sclyid', text='Object ID')

def register():
bpy.types.Object.retro_mappable_type = bpy.props.IntProperty(name='Retro: MAPA object type', default=-1)
Expand Down
2 changes: 1 addition & 1 deletion extern/boo

0 comments on commit c3db26f

Please sign in to comment.