Browse Source

Fixing grammar error, making feature flags boolean in lua script bindings

TheComet 8 years ago
parent
commit
e419afa30b

+ 1 - 1
Source/Urho3D/IK/IKEffector.h

@@ -146,7 +146,7 @@ public:
      * solution. A value of 1 means to match the target rotation exactly, if
      * possible. A value of 0 means to not match it at all.
      * @note The solver must have target rotation enabled for this to have
-     * any effect. See IKSolver::Featire::TARGET_ROTATIONS.
+     * any effect. See IKSolver::Feature::TARGET_ROTATIONS.
      */
     void SetRotationWeight(float weight);
 

+ 2 - 2
Source/Urho3D/LuaScript/pkgs/IK/IKEffector.pkg

@@ -41,6 +41,6 @@ class IKEffector : public Component
     tolua_property__get_set float rotationWeight;
     tolua_property__get_set float rotationDecay;
 
-    tolua_property__get_set Feature WEIGHT_NLERP;
-    tolua_property__get_set Feature INHERIT_PARENT_ROTATION;
+    tolua_property__get_set bool WEIGHT_NLERP;
+    tolua_property__get_set bool INHERIT_PARENT_ROTATION;
 };

+ 7 - 7
Source/Urho3D/LuaScript/pkgs/IK/IKSolver.pkg

@@ -37,11 +37,11 @@ class IKSolver : public Component
     tolua_property__get_set unsigned maximumIterations;
     tolua_property__get_set float tolerance;
 
-    tolua_property__get_set Feature JOINT_ROTATIONS;
-    tolua_property__get_set Feature TARGET_ROTATIONS;
-    tolua_property__get_set Feature UPDATE_ORIGINAL_POSE;
-    tolua_property__get_set Feature UPDATE_ACTIVE_POSE;
-    tolua_property__get_set Feature USE_ORIGINAL_POSE;
-    tolua_property__get_set Feature CONSTRAINTS;
-    tolua_property__get_set Feature AUTO_SOLVE;
+    tolua_property__get_set bool JOINT_ROTATIONS;
+    tolua_property__get_set bool TARGET_ROTATIONS;
+    tolua_property__get_set bool UPDATE_ORIGINAL_POSE;
+    tolua_property__get_set bool UPDATE_ACTIVE_POSE;
+    tolua_property__get_set bool USE_ORIGINAL_POSE;
+    tolua_property__get_set bool CONSTRAINTS;
+    tolua_property__get_set bool AUTO_SOLVE;
 };