Skip to content

Commit

Permalink
[bug] Fix taichi_ngp starting from ti example (#6973)
Browse files Browse the repository at this point in the history
If you start `ti example` and type `66` (taichi_ngp) it crashes and
complains about unknown arg `example`. This PR fixes it.

Issue: #

### Brief Summary
  • Loading branch information
ailzhang authored Dec 23, 2022
1 parent a078e3e commit 28b818d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/taichi/examples/rendering/taichi_ngp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,4 +1106,5 @@ def main(args):
parser.add_argument('--model_path', type=str, default=None)
parser.add_argument('--gui', action='store_true', default=False)
parser.add_argument('--print_profile', action='store_true', default=False)
main(parser.parse_args())
cmd_args, _ = parser.parse_known_args()
main(cmd_args)

0 comments on commit 28b818d

Please sign in to comment.