Norodix/GodotMirror

Remove duplicate frustum code in `Mirror`

Closed this issue · 3 comments

The Mirror.gd and MirrorCamera.gd scripts share copied code with minimal changes.

To reduce code duplication, we can simply use MirrorCamera inside of MirrorContainer and just set that up in the Mirror.gd script.

I just realized that MirrorCamera.gd is dead code that I forgot to delete. No node uses it. Thanks for noticing, I will delete it soon.

Fixed in 6f25906

Eh, couldn't find a reason for it to exist either. :]