Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing bug in rasterizer.py caused by duplicate line (#1421)
Summary: The file [rasterizer.py](https://github.com/facebookresearch/pytorch3d/blob/de3a474d2b9e0f5d4a77c82106a4a8e7853a4e07/pytorch3d/renderer/mesh/rasterizer.py#L201) contains a duplicate line before the check if the projection_transform exists. This causes an exception in the case that a projection transform matrix is already provided. The corresponding lines should be (and are already) in the else case of the if-statement. Removing these lines fixes the bug and produces the desired behavior. Pull Request resolved: #1421 Reviewed By: shapovalov Differential Revision: D42450999 Pulled By: bottler fbshipit-source-id: f7464e87ec9ff8768455656324b0b008132c8a54
- Loading branch information