[Bf-blender-cvs] [94eb264] master: BGE: correct case for createConstraint keyword

Campbell Barton noreply at git.blender.org
Tue Jun 16 13:27:21 CEST 2015


Commit: 94eb2647d5ba0f6b712d7595fc3a1f17e62ef73a
Author: Campbell Barton
Date:   Tue Jun 16 21:22:41 2015 +1000
Branches: master
https://developer.blender.org/rB94eb2647d5ba0f6b712d7595fc3a1f17e62ef73a

BGE: correct case for createConstraint keyword

===================================================================

M	doc/python_api/rst/bge.constraints.rst
M	source/gameengine/Ketsji/KX_PyConstraintBinding.cpp

===================================================================

diff --git a/doc/python_api/rst/bge.constraints.rst b/doc/python_api/rst/bge.constraints.rst
index 14ebc61..b7df227 100644
--- a/doc/python_api/rst/bge.constraints.rst
+++ b/doc/python_api/rst/bge.constraints.rst
@@ -29,26 +29,26 @@ Physics Constraints (bge.constraints)
    :arg physicsid_2: the physics id of the second object in constraint.
    :type physicsid_2: int
 
-   :arg constrainttype: the type of the constraint.
-   :type constrainttype: int
+   :arg constraint_type: the type of the constraint.
+   :type constraint_type: int
 
-   :arg pivot_X: pivot X position (optional).
-   :type pivot_X: float
+   :arg pivot_x: pivot X position (optional).
+   :type pivot_x: float
 
-   :arg pivot_Y: pivot Y position (optional).
-   :type pivot_Y: float
+   :arg pivot_y: pivot Y position (optional).
+   :type pivot_y: float
 
-   :arg pivot_Z: pivot Z position (optional).
-   :type pivot_Z: float
+   :arg pivot_z: pivot Z position (optional).
+   :type pivot_z: float
 
-   :arg axis_X: X axis angle in degrees (optional).
-   :type axis_X: float
+   :arg axis_x: X axis angle in degrees (optional).
+   :type axis_x: float
 
-   :arg axis_Y: Y axis angle in degrees (optional).
-   :type axis_Y: float
+   :arg axis_y: Y axis angle in degrees (optional).
+   :type axis_y: float
 
-   :arg axis_Z: Z axis angle in degrees (optional).
-   :type axis_Z: float
+   :arg axis_z: Z axis angle in degrees (optional).
+   :type axis_z: float
 
    :arg flag: 128 to disable collision between linked bodies (optional).
    :type flag: int
diff --git a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
index 065251f..bfac9a8 100644
--- a/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
+++ b/source/gameengine/Ketsji/KX_PyConstraintBinding.cpp
@@ -501,7 +501,7 @@ static PyObject *gPyCreateConstraint(PyObject *self,
 	float pivotX = 0.0f, pivotY = 0.0f, pivotZ = 0.0f, axisX = 0.0f, axisY = 0.0f, axisZ = 0.0f;
 
 	static const char *kwlist[] = {"physicsid_1", "physicsid_2", "constraint_type", "pivot_x", "pivot_y", "pivot_z",
-	                               "axis_X", "axis_y", "axis_z", "flag", NULL};
+	                               "axis_x", "axis_y", "axis_z", "flag", NULL};
 
 	if (!PyArg_ParseTupleAndKeywords(args, kwds, "KKi|ffffffi:createConstraint", (char **)kwlist,
 	                                 &physicsid, &physicsid2, &constrainttype,




More information about the Bf-blender-cvs mailing list