Merge pull request #20252 from RandomShaper/fix-canvas-search
Fix CanvasItem's search for a CanvasLayer
This commit is contained in:
commit
62f2a8aadb
|
@ -411,6 +411,9 @@ void CanvasItem::_enter_canvas() {
|
|||
if (canvas_layer) {
|
||||
break;
|
||||
}
|
||||
if (Object::cast_to<Viewport>(n)) {
|
||||
break;
|
||||
}
|
||||
n = n->get_parent();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue