X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=blender_export.py;h=4b7cf7f0441809e5bed7a87c52dce3ab4dced40d;hb=00653e446d6b1310fa89d3aace70800f9fef4122;hp=36ca3681d866831fdf74430cc34176450c85435a;hpb=43dc3602effdf0af4f22ce78c0e76565c0be03e6;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/blender_export.py b/blender_export.py index 36ca368..4b7cf7f 100644 --- a/blender_export.py +++ b/blender_export.py @@ -528,7 +528,7 @@ class ent_cubemap(Structure):#{ class ent_miniworld(Structure):#{ _fields_ = [("transform",mdl_transform), ("pstr_world",c_uint32), - ("purpose",c_int32), + ("camera",c_uint32), ("proxy",c_uint32)] sr_functions = { 0: 'zone', 1: 'leave' } @@ -1972,6 +1972,7 @@ def sr_compile( collection ): compile_obj_transform( obj, miniworld.transform ) miniworld.pstr_world = sr_compile_string( obj_data.world ) miniworld.proxy = sr_entity_id( obj_data.proxy ) + miniworld.camera = sr_entity_id( obj_data.camera ) sr_ent_push( miniworld ) #} elif ent_type == 'ent_prop':#{ @@ -2624,6 +2625,9 @@ class SR_OBJECT_ENT_MINIWORLD(bpy.types.PropertyGroup): proxy: bpy.props.PointerProperty( \ type=bpy.types.Object, name='proxy', \ poll=lambda self,obj: sr_filter_ent_type(obj,['ent_prop'])) + camera: bpy.props.PointerProperty( \ + type=bpy.types.Object, name="Camera", \ + poll=lambda self,obj: sr_filter_ent_type(obj,['ent_camera'])) #} class SR_UL_ROUTE_NODE_LIST(bpy.types.UIList):