Skip to content

Dragging a scene file after searching incorrectly treats it as the open scene, causing a circular dependency warning. #103746

@jitspoe

Description

@jitspoe

Tested versions

4.4 stable

System information

Godot v4.4.stable - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 32.0.15.6603) - AMD Ryzen 7 3700X 8-Core Processor (16 threads)

Issue description

Searching for scene, duplicating it, searching for duplicate, opening duplicate, searching for another scene, then dragging the other scene into open duplicate makes it think it's the duplicate scene instead of the other scene, causing circular dependency warning.

Image

I've attached a screenshot here showing the issue. Note that I have "some_other_scene.tscn" selected, but when I drag it onto "original_scene2.tscn", it thinks I'm dragging "original_scene2.tscn" onto itself, causing the Can't instantiate: Circular dependency found at original_scene2.tscn. error shown at the bottom.

Steps to reproduce

  1. Search for a scene. In this case, I typed "original".
  2. Right-click on scene and duplicate. I called it "original_scene2.tscn"
  3. Search for the duplicate. I typed "scene2"
  4. Double click on duplicate to open it up.
  5. Search for a different scene. In my case, "other".
  6. Drag different scene onto opened duplicate scene.
  7. Note that it thinks the duplicate scene is being dragged on instead of the other scene.

Minimal reproduction project (MRP)

test_duplicate_scene_drag.zip

Note: You'll need to follow the steps above to reproduce the issue. Only seems to happen after searching and duplicating.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions