Browse Source

Merge pull request #377 from capnlove/devgg

Fixed getChainCollisionShapeLocalPoint
Peter Robinson 9 years ago
parent
commit
46134cd38d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      engine/source/2d/sceneobject/SceneObject_ScriptBinding.h

+ 2 - 2
engine/source/2d/sceneobject/SceneObject_ScriptBinding.h

@@ -3244,12 +3244,12 @@ ConsoleMethodWithDocs( SceneObject, getChainCollisionShapeLocalPoint, ConsoleStr
     }
     }
 
 
     // Fetch point count.
     // Fetch point count.
-    const U32 pointCount = object->getPolygonCollisionShapePointCount( shapeIndex );
+    const U32 pointCount = object->getChainCollisionShapePointCount( shapeIndex );
 
 
     // Sanity!
     // Sanity!
     if ( pointIndex >= pointCount )
     if ( pointIndex >= pointCount )
     {
     {
-        Con::warnf("SceneObject::getPolygonCollisionShapeLocalPoint() - Invalid point index of %d (only %d available) on shape index of %d.", pointIndex, pointCount, shapeIndex);
+        Con::warnf("SceneObject::getChainCollisionShapePointCount() - Invalid point index of %d (only %d available) on shape index of %d.", pointIndex, pointCount, shapeIndex);
         return Vector2::getZero().scriptThis();
         return Vector2::getZero().scriptThis();
     }
     }