mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
♻️ remove unnecessary check
This commit is contained in:
parent
97fcd089bf
commit
8d849b7e08
1 changed files with 1 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue