ozzr / godot_terrain

Custom Godot Engine Build with Terrain Module
BSD 2-Clause "Simplified" License
115 stars 6 forks source link

Terrain painting stays in mouse pressed state when losing node focus #1

Closed outobugi closed 2 years ago

outobugi commented 2 years ago

When height painting and losing focus of the Terrain by dragging mouse over the terrain and then refocusing the Terrain Node, it continues painting. Meaning the mouse pressed state is never released when node focus changes. I would assume this is a problem with texture painting as well.

ozzr commented 2 years ago

Hi, thanks for notifying the issue!!🎉 I think I know exactly what may have been causing the issue and where to fix it.

PS: Sorry for the delay, creating tutorials is harder than I thought 🤣 and it is consuming a lot of time

ozzr commented 2 years ago

I haven't been able of replicating the issue, but, I added some new lines of code that "should" fix it. The issue as you said, might be caused by the editor not clearing the stored pressed state when out of the spatial viewport. I will keep the issue open until the new version is out and could be tested. Thank you!!