diff options
author | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-07-02 17:23:54 +0300 |
---|---|---|
committer | Bojidar Marinov <bojidar.marinov.bg@gmail.com> | 2019-07-02 17:23:54 +0300 |
commit | f7dad789e958fed81bb167b14c5add45ef723cf9 (patch) | |
tree | d881920fc476fd538e80af17610efb1d6d3a1732 /scene/animation | |
parent | 4cb0887660861402fe6857662e622488adb86514 (diff) |
Fix various memory leaks and errors
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/skeleton_ik.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/animation/skeleton_ik.cpp b/scene/animation/skeleton_ik.cpp index 43c4b2aa51..7a1b10792b 100644 --- a/scene/animation/skeleton_ik.cpp +++ b/scene/animation/skeleton_ik.cpp @@ -406,6 +406,7 @@ void SkeletonIK::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ENTER_TREE: { skeleton = Object::cast_to<Skeleton>(get_parent()); + set_process_priority(1); reload_chain(); } break; case NOTIFICATION_INTERNAL_PROCESS: { @@ -431,8 +432,6 @@ SkeletonIK::SkeletonIK() : skeleton(NULL), target_node_override(NULL), task(NULL) { - - set_process_priority(1); } SkeletonIK::~SkeletonIK() { |