t3du - Fix attribute error rp_gi

This commit is contained in:
2025-07-15 19:05:14 +00:00
parent a65675ef75
commit e9aae53be9

View File

@ -613,7 +613,7 @@ def update_leenkx_world():
if bpy.data.filepath != '' and (file_version < sdk_version or wrd.lnx_commit != lnx_commit): if bpy.data.filepath != '' and (file_version < sdk_version or wrd.lnx_commit != lnx_commit):
# This allows for seamless migration from earlier versions of Leenkx # This allows for seamless migration from earlier versions of Leenkx
for rp in wrd.lnx_rplist: # TODO: deprecated for rp in wrd.lnx_rplist: # TODO: deprecated
if rp.rp_gi != 'Off': if hasattr(rp, 'rp_gi') and rp.rp_gi != 'Off':
rp.rp_gi = 'Off' rp.rp_gi = 'Off'
rp.rp_voxels = rp.rp_gi rp.rp_voxels = rp.rp_gi