mini world rendering adjustments
[carveJwlIkooP6JGAAIwe30JlM.git] / blender_export.py
index 51b25dd4ed0d96acfec643f5610c90fe68a81d6a..b4a501d64ad36bce28ed88f6473e7f70f46bab25 100644 (file)
@@ -43,7 +43,7 @@ sr_entity_list = [
    ('ent_miniworld',    'Mini World',     '', 22 )
 ]
 
-MDL_VERSION_NR = 103
+MDL_VERSION_NR = 104
 SR_TRIGGERABLE = [ 'ent_audio', 'ent_ccmd', 'ent_gate', 'ent_challenge', \
                    'ent_relay', 'ent_skateshop', 'ent_objective', 'ent_route',\
                    'ent_miniworld' ]
@@ -469,7 +469,8 @@ class ent_worldinfo(Structure):
    _fields_ = [("pstr_name",c_uint32),
                ("pstr_author",c_uint32),    # unused
                ("pstr_desc",c_uint32),      # unused
-               ("timezone",c_float)]
+               ("timezone",c_float),
+               ("pstr_skybox",c_uint32)]
 #}
 
 class ent_ccmd(Structure):
@@ -1889,6 +1890,7 @@ def sr_compile( collection ):
             worldinfo.pstr_author = sr_compile_string( obj_data.author )
             worldinfo.pstr_desc = sr_compile_string( obj_data.desc )
             worldinfo.timezone = obj_data.timezone
+            worldinfo.pstr_skybox = sr_compile_string( obj_data.skybox )
             sr_ent_push( worldinfo )
          #}
          elif ent_type == 'ent_ccmd':#{
@@ -3270,6 +3272,7 @@ class SR_OBJECT_ENT_WORLD_INFO(bpy.types.PropertyGroup):
    desc: bpy.props.StringProperty(name="Description")
    author: bpy.props.StringProperty(name="Author")
    timezone: bpy.props.FloatProperty(name="Timezone(hrs) (UTC0 +hrs)")
+   skybox: bpy.props.StringProperty(name="Skybox")
 #}
 
 class SR_OBJECT_ENT_CCMD(bpy.types.PropertyGroup):