[#12670] Draw.blend() is not reset after some RegionParts
自动翻译暂时不可用
本帖暂时展示 GitHub 原始内容。
Platforms
Windows
Build
Steam Build 160.4
Issue
After drawing this mod building, the blending method is still Blending.additive.
Its RegionParts in DrawBlockParts used Blending.additive.
Also there used to be another mod unit of mine having this issue. So I guess it comes from RegionParts.
Blocks including terrain walls, boulders, building walls and power nodes got Blending.addtive too when that building is visible. I guess these blocks are directly drawn without resetting Draw.blend().
<img width="3072" height="1778" alt="Image" src="https://github.com/user-attachments/assets/afdd10e8-12af-446d-b2f1-e9083f42ad80" />
<img width="3072" height="1778" alt="Image" src="https://github.com/user-attachments/assets/b466ebd3-ece2-4ddd-8393-d2b6d05fd9b5" />
<img width="2052" height="1578" alt="Image" src="https://github.com/user-attachments/assets/6cc9c541-aa95-470a-952d-9d4967aac49e" />
Here's the json file of that building.
Some of its RegionParts are not at the default layer.
Also, both the building and that unit which had this issue had their Blending.additive parts drawn near the layer of the blocks. This might be another clue.
Steps to reproduce
Place a block or spawn a unit with those RegionParts.
Some blocks around them become brighter.
Mods used
Failed to upload the zipped file.
Releases:
https://github.com/Martian238/Vanilla-Expansion-Mod/releases/tag/v211H-1
Save file
Custom map (with the mod)
map.zip
(Crash) logs
no crashes
Submission
I have updated to the latest release (https://github.com/Anuken/Mindustry/releases) to make sure my issue has not been fixed.
I have searched the closed and open issues to make sure that this problem has not already been reported.
I am not using Foo's Client.
This issue occurs with no mods enabled.
I have attached a valid save file.
由 MDT GitHub 同步机器人自动同步。