You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fix NavigationObstacle3DEditor parenting error
Fixes NavigationObstacle3DEditor parenting error.
This commit is contained in:
@@ -503,7 +503,11 @@ void NavigationObstacle3DEditor::edit(Node *p_node) {
|
|||||||
wip.clear();
|
wip.clear();
|
||||||
wip_active = false;
|
wip_active = false;
|
||||||
edited_point = -1;
|
edited_point = -1;
|
||||||
|
if (point_lines_meshinstance->get_parent()) {
|
||||||
|
point_lines_meshinstance->reparent(p_node, false);
|
||||||
|
} else {
|
||||||
p_node->add_child(point_lines_meshinstance);
|
p_node->add_child(point_lines_meshinstance);
|
||||||
|
}
|
||||||
_polygon_draw();
|
_polygon_draw();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user