mirror of
https://github.com/godotengine/godot.git
synced 2025-04-25 01:48:08 +08:00
Fix Polygon3DEditor parenting errors
This commit is contained in:
parent
e13fae1414
commit
f3040be3ba
@ -506,7 +506,11 @@ void Polygon3DEditor::edit(Node *p_node) {
|
|||||||
wip.clear();
|
wip.clear();
|
||||||
wip_active = false;
|
wip_active = false;
|
||||||
edited_point = -1;
|
edited_point = -1;
|
||||||
p_node->add_child(imgeom);
|
if (imgeom->get_parent()) {
|
||||||
|
imgeom->reparent(p_node, false);
|
||||||
|
} else {
|
||||||
|
p_node->add_child(imgeom);
|
||||||
|
}
|
||||||
_polygon_draw();
|
_polygon_draw();
|
||||||
set_process(true);
|
set_process(true);
|
||||||
prev_depth = -1;
|
prev_depth = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user