Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Condition "!parent_2d" is true. error for TileMap with bake_navigation=true and no Navigation2D parent #64011

Closed
kleonc opened this issue Aug 6, 2022 · 1 comment

Comments

@kleonc
Copy link
Member

kleonc commented Aug 6, 2022

Godot version

3.5.stable

System information

N/A

Issue description

TileMap with bake_navigation=true and no Navigation2D ancestor/parent (or non-Node2D node between them) results in errors:

E 0:00:00.509   get_relative_transform_to_parent: Condition "!parent_2d" is true. Returned: Transform2D()
  <C++ Source>  scene/2d/node_2d.cpp:356 @ get_relative_transform_to_parent()
E 0:00:00.519   get_relative_transform_to_parent: Condition "!parent_2d" is true. Returned: Transform2D()
  <C++ Source>  scene/2d/node_2d.cpp:356 @ get_relative_transform_to_parent()

Seems like a regression from #61996, cc @smix8.

Steps to reproduce

Add a TileMap and set bake_navigation to true.

Errors (on run / reparenting nodes etc. in the editor):
TeKagG4MQhGodot_v3 5-stable_win64_kGUvIfh2OVBSuEaOFXgG

No errors:
rQhRmZEkPc4902QvFokT

Minimal reproduction project

No response

@kleonc kleonc added this to the 3.5 milestone Aug 6, 2022
@kleonc kleonc changed the title _Condition "!parent_2d" is true._ error for TileMap with bake_navigation=true and no Navigation2D parent Condition "!parent_2d" is true. error for TileMap with bake_navigation=true and no Navigation2D parent Aug 6, 2022
@kleonc kleonc modified the milestones: 3.5, 3.6 Aug 6, 2022
@akien-mga
Copy link
Member

Fixed by #64013.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants