X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=blender_export.py;h=cc0eb21ecebf9bb2a02b5135648a7601f6815bd7;hb=fbc68c65e01838feb77f47b30994b45fcc39ebaf;hp=30b1fe99fbe5f8503caa8c867d8c6c95a61b648d;hpb=2c38f7b8f422374c4c46c5b636a7275b61876192;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/blender_export.py b/blender_export.py index 30b1fe9..cc0eb21 100644 --- a/blender_export.py +++ b/blender_export.py @@ -563,7 +563,8 @@ class ent_prop(Structure):#{ _fields_ = [("transform",mdl_transform), ("submesh_start",c_uint32), ("submesh_count",c_uint32), - ("flags",c_uint32)] + ("flags",c_uint32), + ("pstr_alias",c_uint32)] #} def obj_ent_type( obj ): @@ -1717,7 +1718,7 @@ def sr_compile( collection ): #} #-------------------------- - print( F'[SR] {i: 3}/{mesh_count} {obj.name:<40}', end='\r' ) + print( F'[SR] {i: 3}/{mesh_count} {obj.name:<40}' ) sr_compile_mesh( obj ) #} #} @@ -2034,10 +2035,12 @@ def sr_compile( collection ): #} elif ent_type == 'ent_prop':#{ prop = ent_prop() + obj_data = obj.SR_data.ent_prop[0] compile_obj_transform( obj, prop.transform ) prop.submesh_start, prop.submesh_count, _ = \ sr_compile_mesh_internal( obj ) - prop.flags = 0 + prop.flags = obj_data.flags + prop.pstr_alias = sr_compile_string( obj_data.alias ) sr_ent_push( prop ) #} #} @@ -3215,6 +3218,7 @@ class SR_OBJECT_ENT_AUDIO(bpy.types.PropertyGroup): class SR_OBJECT_ENT_MARKER(bpy.types.PropertyGroup): #{ alias: bpy.props.StringProperty() + flags: bpy.props.IntProperty() #} class SR_OBJECT_ENT_GLYPH(bpy.types.PropertyGroup): @@ -3558,6 +3562,7 @@ class SR_OBJECT_PROPERTIES(bpy.types.PropertyGroup): ent_volume: bpy.props.CollectionProperty(type=SR_OBJECT_ENT_VOLUME) ent_audio: bpy.props.CollectionProperty(type=SR_OBJECT_ENT_AUDIO) ent_marker: bpy.props.CollectionProperty(type=SR_OBJECT_ENT_MARKER) + ent_prop: bpy.props.CollectionProperty(type=SR_OBJECT_ENT_MARKER) ent_glyph: bpy.props.CollectionProperty(type=SR_OBJECT_ENT_GLYPH) ent_font: bpy.props.CollectionProperty(type=SR_OBJECT_ENT_FONT) ent_traffic: bpy.props.CollectionProperty(type=SR_OBJECT_ENT_TRAFFIC)