You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix handling of nulls in some editors
This commit is contained in:
@@ -3990,6 +3990,10 @@ void CanvasItemEditor::_selection_changed() {
|
||||
}
|
||||
|
||||
void CanvasItemEditor::edit(CanvasItem *p_canvas_item) {
|
||||
if (!p_canvas_item) {
|
||||
return;
|
||||
}
|
||||
|
||||
Array selection = editor_selection->get_selected_nodes();
|
||||
if (selection.size() != 1 || Object::cast_to<Node>(selection[0]) != p_canvas_item) {
|
||||
_reset_drag();
|
||||
|
||||
Reference in New Issue
Block a user