forked from LeenkxTeam/LNXSDK
t3du - Fix DoF references and small changes
This commit is contained in:
@ -240,8 +240,8 @@ def build():
|
|||||||
compo_depth = True
|
compo_depth = True
|
||||||
|
|
||||||
focus_distance = 0.0
|
focus_distance = 0.0
|
||||||
if len(bpy.data.cameras) > 0 and bpy.data.cameras[0].dof.use_dof:
|
if len(bpy.data.cameras) > 0 and lnx.utils.get_active_scene().camera.data.dof.use_dof:
|
||||||
focus_distance = bpy.data.cameras[0].dof.focus_distance
|
focus_distance = lnx.utils.get_active_scene().camera.data.dof.focus_distance
|
||||||
|
|
||||||
if focus_distance > 0.0:
|
if focus_distance > 0.0:
|
||||||
wrd.compo_defs += '_CDOF'
|
wrd.compo_defs += '_CDOF'
|
||||||
|
Reference in New Issue
Block a user