You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Don't allow to pass to _is_node_locked function NULL pointer
This commit is contained in:
@@ -514,7 +514,7 @@ void SpatialEditorViewport::_select_region() {
|
|||||||
for (int i = 0; i < instances.size(); i++) {
|
for (int i = 0; i < instances.size(); i++) {
|
||||||
|
|
||||||
Spatial *sp = Object::cast_to<Spatial>(ObjectDB::get_instance(instances[i]));
|
Spatial *sp = Object::cast_to<Spatial>(ObjectDB::get_instance(instances[i]));
|
||||||
if (!sp && _is_node_locked(sp))
|
if (!sp || _is_node_locked(sp))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
Node *item = Object::cast_to<Node>(sp);
|
Node *item = Object::cast_to<Node>(sp);
|
||||||
|
|||||||
Reference in New Issue
Block a user