forked from bartvdbraak/blender
Cycles: Cleanup, use "string_" prefix for functions in util_string
No functional changes, just makes it easier to track where the function is coming from.
This commit is contained in:
parent
9f2d33a652
commit
02739bd051
@ -44,13 +44,13 @@ std::ostream& operator <<(std::ostream &os,
|
||||
/* TODO(sergey): Decode bitflag into list of names. */
|
||||
os << "Nodes features: " << requested_features.nodes_features << std::endl;
|
||||
os << "Use hair: "
|
||||
<< bool_to_string(requested_features.use_hair) << std::endl;
|
||||
<< string_from_bool(requested_features.use_hair) << std::endl;
|
||||
os << "Use object motion: "
|
||||
<< bool_to_string(requested_features.use_object_motion) << std::endl;
|
||||
<< string_from_bool(requested_features.use_object_motion) << std::endl;
|
||||
os << "Use camera motion: "
|
||||
<< bool_to_string(requested_features.use_camera_motion) << std::endl;
|
||||
<< string_from_bool(requested_features.use_camera_motion) << std::endl;
|
||||
os << "Use Baking: "
|
||||
<< bool_to_string(requested_features.use_baking) << std::endl;
|
||||
<< string_from_bool(requested_features.use_baking) << std::endl;
|
||||
return os;
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ string string_remove_trademark(const string &s)
|
||||
return string_strip(result);
|
||||
}
|
||||
|
||||
string bool_to_string(bool var)
|
||||
string string_from_bool(bool var)
|
||||
{
|
||||
if(var)
|
||||
return "True";
|
||||
|
@ -44,7 +44,7 @@ void string_replace(string& haystack, const string& needle, const string& other)
|
||||
bool string_endswith(const string& s, const char *end);
|
||||
string string_strip(const string& s);
|
||||
string string_remove_trademark(const string& s);
|
||||
string bool_to_string(bool var);
|
||||
string string_from_bool(const bool var);
|
||||
|
||||
CCL_NAMESPACE_END
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user