X Tutup
Skip to content

Fix error spam when dragging text in the script editor.#112190

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
bruvzg:drag_spam
Oct 30, 2025
Merged

Fix error spam when dragging text in the script editor.#112190
Repiteo merged 1 commit intogodotengine:masterfrom
bruvzg:drag_spam

Conversation

@bruvzg
Copy link
Member

@bruvzg bruvzg commented Oct 30, 2025

Fixes Bug: Dictionary::operator[] used when there was no value for the given key, please report. error spam when dragging text in the script editor.

@bruvzg bruvzg added this to the 4.6 milestone Oct 30, 2025
@bruvzg bruvzg requested a review from a team October 30, 2025 10:21
@Repiteo Repiteo merged commit 64b1828 into godotengine:master Oct 30, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 30, 2025

Thanks!


bool EditorPropertyNodePath::is_drop_valid(const Dictionary &p_drag_data) const {
if (p_drag_data["type"] != "nodes") {
if (!p_drag_data.has("type") || p_drag_data["type"] != "nodes") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh late for review, but this should be

Suggested change
if (!p_drag_data.has("type") || p_drag_data["type"] != "nodes") {
if (p_drag_data.get("type", "") != "nodes") {

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.

4 participants

X Tutup