Merge pull request #20252 from RandomShaper/fix-canvas-search

Fix CanvasItem's search for a CanvasLayer
This commit is contained in:
Rémi Verschelde 2018-07-24 22:45:24 +02:00 committed by GitHub
commit 62f2a8aadb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -411,6 +411,9 @@ void CanvasItem::_enter_canvas() {
if (canvas_layer) {
break;
}
if (Object::cast_to<Viewport>(n)) {
break;
}
n = n->get_parent();
}