Tilemaps gizmos don't render in correct place when in subviewportcontainers

Open
#1,192 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, godot

Research direction

Start by opening the linked MRP and following the reproduction steps: place a TileMap inside a SubViewport under a SubViewportContainer, with a Control spacer in the VBox. Observe the gizmo position and whether the tiles render, then trace how viewport offsets affect TileMap gizmos. Done means the gizmos appear in the correct place; check whether tile visibility is related, as the report is unsure.

Written by the indexing model from the issue text.

Description

Tested versions

26.1

System information

Debain 13

Issue description

Putting a tilemap inside a sub viewport inside a sub viewport container draws gizmos in the wrong position.

Idk if it's related but the tilemap is not visible either I have to offset it to get it to show in the viewport.

The sub viewport was transparent and had no child camera.

The tileset was 1x1 pixel tiles.

Steps to reproduce
  • add a sub viewport container as a child of a vbox with a sub viewport child with a tilemap child
  • make sure to use a control node as a spacer to offset the sub viewport container downward in the vbox
  • draw some tiles.
Minimal reproduction project (MRP)

mrp.zip

Dominant language
C++
Stars
6.1k
Forks
337
Avg merge
4d 5h
Merged PRs (30d)
52

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Redot-Engine/redot-engine

All issues in Redot-Engine/redot-engine

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.