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

Error when packing node from tree at runtime #53292

Closed
KoBeWi opened this issue Oct 1, 2021 · 1 comment · Fixed by #53450
Closed

Error when packing node from tree at runtime #53292

KoBeWi opened this issue Oct 1, 2021 · 1 comment · Fixed by #53450

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Oct 1, 2021

Godot version

3.x fe2f24c / 4.0 06c1b40

System information

W10

Issue description

When you have a node on scene and use PackedScene.pack() on it, this error appears:

E 0:00:01:0897   _ready: Condition "!is_ancestor_of(p_node)" is true. Returning: false
  <C++ Source>   scene\main\node.cpp:1882 @ Node::is_editable_instance()

It was introduced recently, the error didn't happen few days (weeks?) ago. Also doesn't appear if the packed node isn't inside tree.

Steps to reproduce

var scene = PackedScene.new()
scene.pack($Node)

Minimal reproduction project

No response

@rsubtil
Copy link
Contributor

rsubtil commented Oct 2, 2021

Bisected to fab88a810c (#49664)

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

Successfully merging a pull request may close this issue.

4 participants