♻️ remove unnecessary check

This commit is contained in:
Ondřej Samohel 2022-06-22 14:13:32 +02:00
parent 97fcd089bf
commit 8d849b7e08
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -181,16 +181,11 @@ class ExtractCameraMayaScene(openpype.api.Extractor):
# Fix PLN-178: Don't allow background color to be non-black
for cam, (attr, value) in itertools.product(cmds.ls(
baked_camera_shapes, type="camera", dag=True,
shapes=True, long=True), attrs.items()):
# the above call still pull in shapes that are not
# cameras, so we filter them out here
if cmds.nodeType(cam) != "camera":
continue
long=True), attrs.items()):
plug = "{0}.{1}".format(cam, attr)
unlock(plug)
cmds.setAttr(plug, value)
self.log.info("Performing extraction..")
cmds.select(cmds.ls(members, dag=True,
shapes=True, long=True), noExpand=True)