Correct naming of cryptomatte output sockets on the render layers node

The cryptomatte sockets were incorrectly numbered using a step size of two. While the increment by two is necessary to get the correct number of render passes, they should be numbered consecutively matching the socket names of the cryptomatte node.

Reviewed By: lukasstockner97

Differential Revision: https://developer.blender.org/D6185
This commit is contained in:
Robert Guetzkow 2019-11-04 14:53:09 +01:00 committed by Lukas Stockner
parent 9fac6765c8
commit 3f3d1ad480
3 changed files with 5 additions and 5 deletions

View File

@ -262,13 +262,13 @@ def register_passes(engine, scene, srl):
if crl.use_pass_crypto_object:
for i in range(0, crl.pass_crypto_depth, 2):
engine.register_pass(scene, srl, "CryptoObject" + '{:02d}'.format(i), 4, "RGBA", 'COLOR')
engine.register_pass(scene, srl, "CryptoObject" + '{:02d}'.format(i//2), 4, "RGBA", 'COLOR')
if crl.use_pass_crypto_material:
for i in range(0, crl.pass_crypto_depth, 2):
engine.register_pass(scene, srl, "CryptoMaterial" + '{:02d}'.format(i), 4, "RGBA", 'COLOR')
engine.register_pass(scene, srl, "CryptoMaterial" + '{:02d}'.format(i//2), 4, "RGBA", 'COLOR')
if srl.cycles.use_pass_crypto_asset:
for i in range(0, srl.cycles.pass_crypto_depth, 2):
engine.register_pass(scene, srl, "CryptoAsset" + '{:02d}'.format(i), 4, "RGBA", 'COLOR')
engine.register_pass(scene, srl, "CryptoAsset" + '{:02d}'.format(i//2), 4, "RGBA", 'COLOR')
if crl.use_denoising or crl.denoising_store_passes:
engine.register_pass(scene, srl, "Noisy Image", 4, "RGBA", 'COLOR')

@ -1 +1 @@
Subproject commit 854b986732d643e696973175e480c15594bc4780
Subproject commit 67f1fbca1482d9d9362a4001332e785c3fd5d230

@ -1 +1 @@
Subproject commit 786f4704328507a95b6c1d254bf4cf400a5e8f0c
Subproject commit ef6ef414d22c2578fad99327743b925ab640a99c