mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 06:03:38 +00:00
Fix OccluderPolyShape handles disappear after release click
(cherry picked from commitsdd3bda9156
and98803d4edd
)
This commit is contained in:
parent
56ce1d809d
commit
57ad3e9670
@ -7013,11 +7013,12 @@ void SpatialEditorPlugin::edit(Object *p_object) {
|
||||
bool SpatialEditorPlugin::handles(Object *p_object) const {
|
||||
if (p_object->is_class("Spatial")) {
|
||||
return true;
|
||||
} else {
|
||||
}
|
||||
if (!p_object->is_class("Resource")) {
|
||||
// This ensures that gizmos are cleared when selecting a non-Spatial node.
|
||||
const_cast<SpatialEditorPlugin *>(this)->edit((Object *)nullptr);
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Dictionary SpatialEditorPlugin::get_state() const {
|
||||
|
Loading…
Reference in New Issue
Block a user