Clean up mesh include code and comments

This commit is contained in:
Aaron Franke 2022-08-19 19:15:46 -05:00
parent 0c5f254956
commit 8893b2bdb4
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
9 changed files with 17 additions and 27 deletions

View file

@ -323,10 +323,8 @@ void AnimationPlayer::_ensure_node_caches(AnimationData *p_anim, Node *p_root_ov
#endif // _3D_DISABLED
{
if (!child->is_connected("tree_exiting", callable_mp(this, &AnimationPlayer::_node_removed))) {
child->connect("tree_exiting", callable_mp(this, &AnimationPlayer::_node_removed).bind(child), CONNECT_ONESHOT);
}
if (!child->is_connected("tree_exiting", callable_mp(this, &AnimationPlayer::_node_removed))) {
child->connect("tree_exiting", callable_mp(this, &AnimationPlayer::_node_removed).bind(child), CONNECT_ONESHOT);
}
TrackNodeCacheKey key;
@ -375,7 +373,7 @@ void AnimationPlayer::_ensure_node_caches(AnimationData *p_anim, Node *p_root_ov
node_cache->init_rot = rest.basis.get_rotation_quaternion();
node_cache->init_scale = rest.basis.get_scale();
} else {
// no property, just use spatialnode
// Not a skeleton, the node can be accessed with the node_3d member.
node_cache->skeleton = nullptr;
}
}