Răsfoiți Sursa

Apply patch to CollisionShape.worldBoundingBox property.
Apply patch to NavigationMesh.worldBoundingBox and numTiles property.

Aster Jian 12 ani în urmă
părinte
comite
aa633f2e2e

+ 8 - 0
Extras/LuaScript/pkgs/Navigation/NavigationMesh.pkg

@@ -130,4 +130,12 @@ PODVector<Vector3> NavigationMeshFindPath(NavigationMesh* navMesh, const Vector3
     return dest;
 }
 
+// Patch for NavigationMesh.worldBoundingBox property.
+#define TOLUA_DISABLE_tolua_get_NavigationMesh_worldBoundingBox
+#define tolua_get_NavigationMesh_worldBoundingBox tolua_NavigationLuaAPI_NavigationMesh_GetWorldBoundingBox00
+
+// Patch for NavigationMesh.numTiles property.
+#define TOLUA_DISABLE_tolua_get_NavigationMesh_numTiles
+#define tolua_get_NavigationMesh_numTiles tolua_NavigationLuaAPI_NavigationMesh_GetNumTiles00
+
 $}

+ 8 - 0
Extras/LuaScript/pkgs/Physics/CollisionShape.pkg

@@ -91,3 +91,11 @@ public:
     tolua_property__get_set unsigned lodLevel;
     tolua_readonly tolua_property__get_set BoundingBox worldBoundingBox;
 };
+
+${
+
+// Patch for CollisionShape.worldBoundingBox property.
+#define TOLUA_DISABLE_tolua_get_CollisionShape_worldBoundingBox
+#define tolua_get_CollisionShape_worldBoundingBox tolua_PhysicsLuaAPI_CollisionShape_GetWorldBoundingBox00
+
+$}