1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Added/Fixed null pointer checks

This commit is contained in:
Wilson E. Alvarez
2017-08-25 11:14:33 -04:00
parent 53c0010932
commit 7a07895920
14 changed files with 39 additions and 47 deletions

View File

@@ -1646,7 +1646,7 @@ PropertyInfo AnimationKeyEditor::_find_hint_for_track(int p_idx, NodePath &r_bas
List<PropertyInfo> pinfo;
if (res.is_valid())
res->get_property_list(&pinfo);
else
else if (node)
node->get_property_list(&pinfo);
for (List<PropertyInfo>::Element *E = pinfo.front(); E; E = E->next()) {