forked from LeenkxTeam/LNXSDK
merge upstream
This commit is contained in:
@ -340,8 +340,8 @@ project.addSources('Sources');
|
||||
if rpdat.lnx_particles != 'Off':
|
||||
assets.add_khafile_def('lnx_particles')
|
||||
|
||||
if rpdat.rp_draw_order == 'Shader':
|
||||
assets.add_khafile_def('lnx_draworder_shader')
|
||||
if rpdat.rp_draw_order == 'Index':
|
||||
assets.add_khafile_def('lnx_draworder_index')
|
||||
|
||||
if lnx.utils.get_viewport_controls() == 'azerty':
|
||||
assets.add_khafile_def('lnx_azerty')
|
||||
@ -806,7 +806,7 @@ const int compoChromaticSamples = {rpdat.lnx_chromatic_aberration_samples};
|
||||
|
||||
focus_distance = 0.0
|
||||
fstop = 0.0
|
||||
if len(bpy.data.cameras) > 0 and lnx.utils.get_active_scene().camera.data.dof.use_dof:
|
||||
if lnx.utils.get_active_scene().camera and lnx.utils.get_active_scene().camera.data.dof.use_dof:
|
||||
focus_distance = lnx.utils.get_active_scene().camera.data.dof.focus_distance
|
||||
fstop = lnx.utils.get_active_scene().camera.data.dof.aperture_fstop
|
||||
lens = lnx.utils.get_active_scene().camera.data.lens
|
||||
|
||||
Reference in New Issue
Block a user