Merge pull request #79947 from timothyqiu/edit-resource

[3.x] Fix OccluderPolyShape handles disappear after release click
This commit is contained in:
Rémi Verschelde 2023-08-02 17:30:25 +02:00
commit 412e44f079
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -7270,7 +7270,7 @@ void SpatialEditorPlugin::edit(Object *p_object) {
}
bool SpatialEditorPlugin::handles(Object *p_object) const {
if (p_object->is_class("Spatial")) {
if (p_object->is_class("Spatial") || p_object->is_class("Resource")) {
return true;
} else {
// This ensures that gizmos are cleared when selecting a non-Spatial node.