BGE: Fixing up the error message received when trying to add an object from an active...
authorMitchell Stokes <mogurijin@gmail.com>
Mon, 9 Jul 2012 18:55:50 +0000 (18:55 +0000)
committerMitchell Stokes <mogurijin@gmail.com>
Mon, 9 Jul 2012 18:55:50 +0000 (18:55 +0000)
source/gameengine/Ketsji/KX_Scene.cpp

index 695ad1f945ccc48fcea5c90b1d5e3956434c624c..e09d5f13bfe5acea57479e890de2ab14f9d7e38d 100644 (file)
@@ -2268,7 +2268,7 @@ KX_PYMETHODDEF_DOC(KX_Scene, addObject,
                return NULL;
 
        if (!m_inactivelist->SearchValue(ob)) {
-               PyErr_Format(PyExc_ValueError, "scene.addObject(object, other, time): KX_Scene (second argument): object does not belong to scene");
+               PyErr_Format(PyExc_ValueError, "scene.addObject(object, other, time): KX_Scene (first argument): object must be in an inactive layer");
                return NULL;
        }
        SCA_IObject* replica = AddReplicaObject((SCA_IObject*)ob, other, time);