From ee702334a1c7bd19dd8fd7fd57009e393939bab7 Mon Sep 17 00:00:00 2001 From: jfons Date: Wed, 9 Jun 2021 13:06:38 +0200 Subject: Rename get_parent_spatial() to get_parent_node3d() Renames get_parent_spatial() to get_parent_node3d() and changes its implementation. Before it was not returning a correct pointer if the node wasn't added to a SceneTree. Now it uses the same implementation as CanvasItem, which will be correct even for nodes outside a SceneTree. --- doc/classes/Node3D.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/classes') diff --git a/doc/classes/Node3D.xml b/doc/classes/Node3D.xml index a6237708c6..a94cc37bc8 100644 --- a/doc/classes/Node3D.xml +++ b/doc/classes/Node3D.xml @@ -20,7 +20,7 @@ Forces the transform to update. Transform changes in physics are not instant for performance reasons. Transforms are accumulated and then set. Use this if you need an up-to-date transform when doing physics operations. - + -- cgit v1.2.3