diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2010-02-05 02:51:41 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2010-02-05 02:51:41 +0300 |
commit | f32df64d2bbd151b770aa36e74137145a2817813 (patch) | |
tree | 963f706b6c364808fc5f039b52b001c94078108d /source | |
parent | 26a69496bad5ff6ba37977357ea6e1de6589167a (diff) |
BGE fix: KX_Lamp using strcmp wrongly + typo in rna_define
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_define.c | 2 | ||||
-rw-r--r-- | source/gameengine/Ketsji/KX_Light.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c index 7e8410a7074..26aa6a94694 100644 --- a/source/blender/makesrna/intern/rna_define.c +++ b/source/blender/makesrna/intern/rna_define.c @@ -478,7 +478,7 @@ void RNA_struct_free(BlenderRNA *brna, StructRNA *srna) if(srna->flag & STRUCT_RUNTIME) { if(RNA_struct_py_type_get(srna)) { - fprintf(stderr, "StructRNA \"%s\" freed while holdng a python reference\n", srna->name); + fprintf(stderr, "StructRNA \"%s\" freed while holding a python reference\n", srna->name); } } diff --git a/source/gameengine/Ketsji/KX_Light.cpp b/source/gameengine/Ketsji/KX_Light.cpp index a0ecac178b3..ee4abdf06f1 100644 --- a/source/gameengine/Ketsji/KX_Light.cpp +++ b/source/gameengine/Ketsji/KX_Light.cpp @@ -345,11 +345,11 @@ PyObject* KX_LightObject::pyattr_get_typeconst(void *self_v, const KX_PYATTRIBUT const char* type = attrdef->m_name; - if(strcmp(type, "SPOT")) { + if(!strcmp(type, "SPOT")) { retvalue = PyLong_FromSsize_t(RAS_LightObject::LIGHT_SPOT); - } else if (strcmp(type, "SUN")) { + } else if (!strcmp(type, "SUN")) { retvalue = PyLong_FromSsize_t(RAS_LightObject::LIGHT_SUN); - } else if (strcmp(type, "NORMAL")) { + } else if (!strcmp(type, "NORMAL")) { retvalue = PyLong_FromSsize_t(RAS_LightObject::LIGHT_NORMAL); } |