mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Improve use of Ref.is_null/valid
Use `is_null` over `!is_valid` and vice versa.
This commit is contained in:
parent
0f95e9f8e6
commit
a1846b27ea
177 changed files with 517 additions and 519 deletions
|
|
@ -1338,11 +1338,11 @@ void Skeleton3DEditor::_subgizmo_selection_change() {
|
|||
Vector<Ref<Node3DGizmo>> gizmos = skeleton->get_gizmos();
|
||||
for (int i = 0; i < gizmos.size(); i++) {
|
||||
Ref<EditorNode3DGizmo> gizmo = gizmos[i];
|
||||
if (!gizmo.is_valid()) {
|
||||
if (gizmo.is_null()) {
|
||||
continue;
|
||||
}
|
||||
Ref<Skeleton3DGizmoPlugin> plugin = gizmo->get_plugin();
|
||||
if (!plugin.is_valid()) {
|
||||
if (plugin.is_null()) {
|
||||
continue;
|
||||
}
|
||||
skeleton->set_subgizmo_selection(gizmo, selected, skeleton->get_bone_global_pose(selected));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue