mirror of
https://github.com/godotengine/godot.git
synced 2024-11-29 07:32:20 +00:00
Merge pull request #59724 from timothyqiu/custom-viewport
This commit is contained in:
commit
8f06d8653c
@ -583,6 +583,10 @@ void Camera2D::set_custom_viewport(Node *p_viewport) {
|
|||||||
remove_from_group(canvas_group_name);
|
remove_from_group(canvas_group_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (custom_viewport && !ObjectDB::get_instance(custom_viewport_id)) {
|
||||||
|
viewport = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
custom_viewport = Object::cast_to<Viewport>(p_viewport);
|
custom_viewport = Object::cast_to<Viewport>(p_viewport);
|
||||||
|
|
||||||
if (custom_viewport) {
|
if (custom_viewport) {
|
||||||
|
Loading…
Reference in New Issue
Block a user