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:
authorHamed Zaghaghi <hamed.zaghaghi@gmail.com>2008-07-12 14:21:37 +0400
committerHamed Zaghaghi <hamed.zaghaghi@gmail.com>2008-07-12 14:21:37 +0400
commita49c9c458aac2a738c3cf90860fb6e942747617e (patch)
tree98882a609b085452b24c35bbe1a7cc6103d7ee91 /source/gameengine/Expressions/Value.cpp
parent5f15b164c549b336e1c5ef0dff2aaede056fd6f5 (diff)
improvement of 2d-filter custom shader,
some bugfixes, now you can use depth buffer and luminance buffer without any settings, also you can use object's properties in a shader
Diffstat (limited to 'source/gameengine/Expressions/Value.cpp')
-rw-r--r--source/gameengine/Expressions/Value.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/source/gameengine/Expressions/Value.cpp b/source/gameengine/Expressions/Value.cpp
index f0195d5df82..48136eb9dc3 100644
--- a/source/gameengine/Expressions/Value.cpp
+++ b/source/gameengine/Expressions/Value.cpp
@@ -405,7 +405,20 @@ bool CValue::RemoveProperty(const STR_String & inName)
return false;
}
-
+//
+// Get Property Names
+//
+vector<STR_String> CValue::GetPropertyNames()
+{
+ vector<STR_String> result;
+ if(!m_pNamedPropertyArray) return result;
+ for ( std::map<STR_String,CValue*>::iterator it = m_pNamedPropertyArray->begin();
+ !(it == m_pNamedPropertyArray->end());it++)
+ {
+ result.push_back((*it).first);
+ }
+ return result;
+}
//
// Clear all properties