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:
authorThomas Dinges <blender@dingto.org>2016-01-07 03:38:25 +0300
committerThomas Dinges <blender@dingto.org>2016-01-07 03:38:25 +0300
commit3da0af1464947df6d8002166332f2e74b0a85aaf (patch)
tree06e49b6e0d7a45bade8da420246896cb46fe1543 /intern/cycles/util/util_string.cpp
parentdb72639e1f452014b7ac4e251946ee716a3fb507 (diff)
Cycles: Add utility function to convert bool to string.
Diffstat (limited to 'intern/cycles/util/util_string.cpp')
-rw-r--r--intern/cycles/util/util_string.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/cycles/util/util_string.cpp b/intern/cycles/util/util_string.cpp
index 66856dd8331..a3b35346d76 100644
--- a/intern/cycles/util/util_string.cpp
+++ b/intern/cycles/util/util_string.cpp
@@ -122,5 +122,13 @@ string string_remove_trademark(const string &s)
return string_strip(result);
}
+string bool_to_string(bool var)
+{
+ if(var)
+ return "True";
+ else
+ return "False";
+}
+
CCL_NAMESPACE_END