Update CollectionProperty type

This commit is contained in:
2026-11-28 08:51:36 +00:00
parent ce0c50c8b5
commit 2cdb6773d3

View File

@ -297,9 +297,9 @@ def init_properties():
('Enabled', 'Enabled', 'Enabled')],
name="P2P", default='Disabled', description="Include P2P (Leenkx) library", update=assets.invalidate_compiler_cache)
bpy.types.World.lnx_torrent_download_dir = StringProperty(name="Download Path", description="Directory torrent downloads are written to. Relative paths resolve against the project directory at runtime; absolute paths are used as-is", default="Downloads", subtype='DIR_PATH', update=assets.invalidate_compiler_cache)
bpy.types.World.lnx_torrent_trackers = CollectionProperty(name="Torrent Trackers", description="Default torrent tracker announce URLs", type=bpy.types.PropertyGroup)
bpy.types.World.lnx_torrent_trackers = CollectionProperty(name="Torrent Trackers", description="Default torrent tracker announce URLs", type=lnx.utils.LnxPropertyGroup)
bpy.types.World.lnx_torrent_trackers_index = IntProperty(name="Torrent Tracker Index", default=0)
bpy.types.World.lnx_torrent_ice_servers = CollectionProperty(name="ICE Servers", description="Default ICE/STUN servers used for WebRTC peer connections", type=bpy.types.PropertyGroup)
bpy.types.World.lnx_torrent_ice_servers = CollectionProperty(name="ICE Servers", description="Default ICE/STUN servers used for WebRTC peer connections", type=lnx.utils.LnxPropertyGroup)
bpy.types.World.lnx_torrent_ice_servers_index = IntProperty(name="ICE Server Index", default=0)
bpy.types.World.lnx_torrent_peer_timeout = IntProperty(name="Peer Timeout", description="Milliseconds after which an unresponsive peer is dropped", default=5 * 60 * 1000, min=0, update=assets.invalidate_compiler_cache)
bpy.types.World.lnx_torrent_heartbeat = IntProperty(name="Heartbeat", description="Milliseconds between heartbeat packets sent to peers", default=30000, min=0, update=assets.invalidate_compiler_cache)
@ -666,11 +666,11 @@ def init_properties():
bpy.types.World.lnx_light_ies_texture = BoolProperty(name="IES Texture (iestexture.png)", default=False, update=assets.invalidate_compiler_cache)
bpy.types.World.lnx_light_clouds_texture = BoolProperty(name="Clouds Texture (cloudstexture.png)", default=False, update=assets.invalidate_compiler_cache)
bpy.types.World.lnx_rpcache_list = CollectionProperty(type=bpy.types.PropertyGroup)
bpy.types.World.lnx_scripts_list = CollectionProperty(type=bpy.types.PropertyGroup)
bpy.types.World.lnx_bundled_scripts_list = CollectionProperty(type=bpy.types.PropertyGroup)
bpy.types.World.lnx_canvas_list = CollectionProperty(type=bpy.types.PropertyGroup)
bpy.types.World.lnx_wasm_list = CollectionProperty(type=bpy.types.PropertyGroup)
bpy.types.World.lnx_rpcache_list = CollectionProperty(type=lnx.utils.LnxPropertyGroup)
bpy.types.World.lnx_scripts_list = CollectionProperty(type=lnx.utils.LnxPropertyGroup)
bpy.types.World.lnx_bundled_scripts_list = CollectionProperty(type=lnx.utils.LnxPropertyGroup)
bpy.types.World.lnx_canvas_list = CollectionProperty(type=lnx.utils.LnxPropertyGroup)
bpy.types.World.lnx_wasm_list = CollectionProperty(type=lnx.utils.LnxPropertyGroup)
bpy.types.World.world_defs = StringProperty(name="World Shader Defs", default='')
bpy.types.World.compo_defs = StringProperty(name="Compositor Shader Defs", default='')