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

Fix highlighting for cone and custom circle templates #14649

Merged
merged 1 commit into from
May 7, 2024

Conversation

CarlosFdez
Copy link
Collaborator

@CarlosFdez CarlosFdez commented May 7, 2024

It doesn't fix the templates center-point not snapping properly (which is apparently on purpose for smoother behavior), but it does fix the highlight when placed at a corner for a circle template created directly from canvas controls. It also restores mid edge placements for cones going in a lateral direction.

src/module/canvas/layer/template.ts Outdated Show resolved Hide resolved
@CarlosFdez CarlosFdez marked this pull request as draft May 7, 2024 09:03
@CarlosFdez CarlosFdez force-pushed the fix-circle-templates branch 2 times, most recently from 5f45c0a to de10aaf Compare May 7, 2024 09:42
@CarlosFdez CarlosFdez marked this pull request as ready for review May 7, 2024 09:42
@CarlosFdez CarlosFdez changed the title Fix highlighting for custom circle templates Fix highlighting for cone and custom circle templates May 7, 2024
@CarlosFdez CarlosFdez merged commit 5dfbfff into foundryvtt:v12 May 7, 2024
1 check passed
@CarlosFdez CarlosFdez deleted the fix-circle-templates branch May 7, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants