Blender Git Commit Log
Git Commits -> Revision 2a30558
Revision 2a30558 by Porteries Tristan (master) June 20, 2015, 12:21 (GMT) |
BGE: Fix T38030: wrong vertex index returned by KX_PolyProxy Fix T38030. In c++ source we use one list for triangles and an other for quads, but KX_PolyProxy doesn't care about that and return the vertex offset in its list. So we just have to compute the offset of each RAS_DisplayArray to its previous to have an absolute vertex index. Reviewers: moguri, campbellbarton, kupoman, agoose77, brita_, hg1 Reviewed By: agoose77, hg1 Projects: #game_engine Maniphest Tasks: T38030 Differential Revision: https://developer.blender.org/D1324 |
Commit Details:
Full Hash: 2a305580b2c76af62c129fbca043466ab010c2df
Parent Commit: 6b3a43c
Lines Changed: +47, -16
7 Modified Paths:
/source/gameengine/Ketsji/KX_PolyProxy.cpp (+5, -5) (Diff)
/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp (+10, -0) (Diff)
/source/gameengine/Rasterizer/RAS_MaterialBucket.h (+10, -0) (Diff)
/source/gameengine/Rasterizer/RAS_MeshObject.cpp (+17, -0) (Diff)
/source/gameengine/Rasterizer/RAS_MeshObject.h (+1, -7) (Diff)
/source/gameengine/Rasterizer/RAS_Polygon.cpp (+2, -2) (Diff)
/source/gameengine/Rasterizer/RAS_Polygon.h (+2, -2) (Diff)
/source/gameengine/Rasterizer/RAS_MaterialBucket.cpp (+10, -0) (Diff)
/source/gameengine/Rasterizer/RAS_MaterialBucket.h (+10, -0) (Diff)
/source/gameengine/Rasterizer/RAS_MeshObject.cpp (+17, -0) (Diff)
/source/gameengine/Rasterizer/RAS_MeshObject.h (+1, -7) (Diff)
/source/gameengine/Rasterizer/RAS_Polygon.cpp (+2, -2) (Diff)
/source/gameengine/Rasterizer/RAS_Polygon.h (+2, -2) (Diff)