Update leenkx/blender/lnx/utils.py
This commit is contained in:
parent
a562af9b60
commit
f403955fcd
@ -216,7 +216,7 @@ def is_gapi_gl_es() -> bool:
|
||||
|
||||
def get_rp() -> lnx.props_renderpath.LnxRPListItem:
|
||||
wrd = bpy.data.worlds['Lnx']
|
||||
if not state.is_export and wrd.lnx_play_renderpath != '':
|
||||
if not state.is_export and wrd.lnx_play_renderpath != '' and lnx.props_renderpath.LnxRPListItem.get_by_name(wrd.lnx_play_renderpath) is not None:
|
||||
return lnx.props_renderpath.LnxRPListItem.get_by_name(wrd.lnx_play_renderpath)
|
||||
else:
|
||||
return wrd.lnx_rplist[wrd.lnx_rplist_index]
|
||||
|
Loading…
x
Reference in New Issue
Block a user