소스 검색

Fixed getChainCollisionShapeLocalPoint, which erroneously used PolygonShape methods

capnlove 9 년 전
부모
커밋
acd627ea32
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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.
-    const U32 pointCount = object->getPolygonCollisionShapePointCount( shapeIndex );
+    const U32 pointCount = object->getChainCollisionShapePointCount( shapeIndex );
 
     // Sanity!
     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();
     }