Browse Source

Not registering IKConstraint, since it doesn't do anything yet

TheComet 8 years ago
parent
commit
c628b27cf9
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Source/Urho3D/IK/IK.cpp
  2. 1 1
      Source/Urho3D/IK/IKSolver.cpp

+ 1 - 1
Source/Urho3D/IK/IK.cpp

@@ -33,7 +33,7 @@ const char* IK_CATEGORY = "Inverse Kinematics";
 // ----------------------------------------------------------------------------
 void RegisterIKLibrary(Context* context)
 {
-    IKConstraint::RegisterObject(context);
+    //IKConstraint::RegisterObject(context);
     IKEffector::RegisterObject(context);
     IKSolver::RegisterObject(context);
 }

+ 1 - 1
Source/Urho3D/IK/IKSolver.cpp

@@ -413,7 +413,7 @@ void IKSolver::RebuildTree()
     assert (node_ != NULL);
 
     ik_node_t* ikRoot = CreateIKNode(node_);
-    ik_solver_set_tree(solver_, ikRoot);
+    ik_solver_set_tree(solver_, ikRoot); // Deletes the old tree with all effectors + constraints
 
     PODVector<Node*> effectorNodes;
     node_->GetChildrenWithComponent<IKEffector>(effectorNodes, true);