godotengine / godotengine/godot
GraphNode not render perfect when zoom != 1
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
v4.2.1.stable.mono.official [b09f793f5]
### System information
Godot v4.2.1.stable.mono - Windows 10.0.17763 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (NVIDIA; 31.0.15.2849) - AMD Ryzen 9 5950X 16-Core Processor (32 Threads)
### Issue description
I'm create a stylebox for button normal's style like this:

It look well when zoom == 1.0, but when zoom != 1.0, it render not correct:

### Steps to reproduce
1. run the MRP
2. zoom the GraphEdit
### Minimal reproduction project (MRP)
[RenderTest.zip](https://github.com/godotengine/godot/files/14111183/RenderTest.zip)
Contributor guide
Research direction
Start by running the attached RenderTest.zip MRP and reproducing the GraphEdit zoom behavior with the button's StyleBox. Trace the GraphNode rendering path and compare the result at zoom 1.0 and other zoom levels. Done means the style renders correctly when the GraphEdit is zoomed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100