I am trying to use a python script during runtime of bge to vertex color a mesh. The idea is to click the mouse and vertex color a mesh (the color is not uniform so I can't use object color). A simple version of the code is below and can be illustrated on the standard cube. Put in a logic brick for a mouse left button click and call it "click" along with a python controller running to this script.
This setup will color one vertex red. However when I parent the object to an armature (single bone) the code fails to do anything to the mesh.
If anyone can tell me where I am wrong or what I can do to achieve the end result in another way please let me know.