Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed auto_follow_distance #276

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

TCROC
Copy link
Contributor

@TCROC TCROC commented Apr 30, 2024

I was following the v7.0 branch. I saw it got merged into master so I synced my fork with master. I noticed there was a large refactor before merging in and it appears the correct assignment of "distance" was replaced with an incorrect assignment of "follow_distance". Fortunately I have the old v7.0 branch cached on my fork. You can see it here: https://github.com/Lange-Studios/phantom-camera/blob/dc3961faab3bdbd3d04790db49091d7601c93dfc/addons/phantom_camera/scripts/phantom_camera/phantom_camera_3D.gd#L580

Also, you can test the example follow group and see that auto follow distance is broken.

Thanks for the awesome asset btw! This was a simple fix :)

@ramokz ramokz self-requested a review April 30, 2024 20:35
Copy link
Owner

@ramokz ramokz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Hadn't noticed this.

Think the change also needs to happen in the clamp method?

@TCROC
Copy link
Contributor Author

TCROC commented Apr 30, 2024

Good catch! Hadn't noticed this.

Think the change also needs to happen in the clamp method?

It does! I'll add that in there :)

@TCROC
Copy link
Contributor Author

TCROC commented Apr 30, 2024

@ramokz Fixed :)

Copy link
Owner

@ramokz ramokz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Thanks for finding and submitting a fix :)

@ramokz ramokz merged commit 056d59a into ramokz:main Apr 30, 2024
@ramokz ramokz linked an issue Apr 30, 2024 that may be closed by this pull request
@TCROC
Copy link
Contributor Author

TCROC commented Apr 30, 2024

LGTM!

Thanks for finding and submitting a fix :)

Absolutely! Glad to help! :) ❤️

@TCROC TCROC deleted the auto-follow-distance-fix branch May 1, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto follow distance is broken
2 participants