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

Path2D and RayCast2D line width doesn´t adapt to canvas editor zoom #25588

Open
Ranoller opened this issue Feb 3, 2019 · 0 comments
Open

Path2D and RayCast2D line width doesn´t adapt to canvas editor zoom #25588

Ranoller opened this issue Feb 3, 2019 · 0 comments

Comments

@Ranoller
Copy link
Contributor

Ranoller commented Feb 3, 2019

Godot version:

8698876

OS/device including version:

Win7

Issue description:

Path2D and RayCast2D line doesn´t follow editor zoom like particles2d rect does... lines 98 to 102 in path2d.cpp are:

#if TOOLS_ENABLED
		const float line_width = 2 * EDSCALE;
#else
		const float line_width = 2;
#endif

I think that editor_scale is not the property that should be used in that code, but i´m unable to find what property and file should be used to maintain the size no mathers the zoom.

The problem:

path2dtinyline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants