diff options
author | Thomas Dinges <blender@dingto.org> | 2016-01-07 03:38:25 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2016-01-07 03:38:25 +0300 |
commit | 3da0af1464947df6d8002166332f2e74b0a85aaf (patch) | |
tree | 06e49b6e0d7a45bade8da420246896cb46fe1543 /intern/cycles/device/device.cpp | |
parent | db72639e1f452014b7ac4e251946ee716a3fb507 (diff) |
Cycles: Add utility function to convert bool to string.
Diffstat (limited to 'intern/cycles/device/device.cpp')
-rw-r--r-- | intern/cycles/device/device.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp index fc9959e0b48..f3fd462d4c1 100644 --- a/intern/cycles/device/device.cpp +++ b/intern/cycles/device/device.cpp @@ -28,6 +28,7 @@ #include "util_time.h" #include "util_types.h" #include "util_vector.h" +#include "util_string.h" CCL_NAMESPACE_BEGIN @@ -42,15 +43,14 @@ std::ostream& operator <<(std::ostream &os, os << "Max nodes group: " << requested_features.max_nodes_group << std::endl; /* TODO(sergey): Decode bitflag into list of names. */ os << "Nodes features: " << requested_features.nodes_features << std::endl; - /* TODO(sergey): Make it utility function to convert bool to string. */ os << "Use hair: " - << (requested_features.use_hair ? "True" : "False") << std::endl; + << bool_to_string(requested_features.use_hair) << std::endl; os << "Use object motion: " - << (requested_features.use_object_motion ? "True" : "False") << std::endl; + << bool_to_string(requested_features.use_object_motion) << std::endl; os << "Use camera motion: " - << (requested_features.use_camera_motion ? "True" : "False") << std::endl; + << bool_to_string(requested_features.use_camera_motion) << std::endl; os << "Use Baking: " - << (requested_features.use_baking ? "True" : "False") << std::endl; + << bool_to_string(requested_features.use_baking) << std::endl; return os; } |