use const for readonly strings and set some functions to static
[blender.git] / source / gameengine / VideoTexture / Texture.cpp
index 2066afb..ba9922d 100644 (file)
@@ -107,7 +107,7 @@ RAS_IPolyMaterial * getMaterial (PyObject *obj, short matID)
 
 
 // get material ID
-short getMaterialID (PyObject * obj, char * name)
+short getMaterialID(PyObject * obj, const char *name)
 {
        // search for material
        for (short matID = 0;; ++matID)