Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/gameengine/Expressions/Value.cpp')
-rw-r--r--source/gameengine/Expressions/Value.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/gameengine/Expressions/Value.cpp b/source/gameengine/Expressions/Value.cpp
index 07505829737..9233a10b784 100644
--- a/source/gameengine/Expressions/Value.cpp
+++ b/source/gameengine/Expressions/Value.cpp
@@ -698,14 +698,15 @@ CValue* CValue::ConvertPythonToValue(PyObject* pyobj)
return vallie;
}
-int CValue::_setattr(const STR_String& attr,PyObject* pyobj)
+
+int CValue::_delattr(const STR_String& attr)
{
-
- if (!pyobj) { // member deletion
- RemoveProperty(attr);
- return 0;
- }
+ RemoveProperty(attr);
+ return 0;
+}
+int CValue::_setattr(const STR_String& attr,PyObject* pyobj)
+{
CValue* vallie = ConvertPythonToValue(pyobj);
if (vallie)
{