mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Display <empty> as custom name if an empty string is set.
* In cases where the API doesn't consider an empty string to be ignored.
This commit is contained in:
@@ -267,10 +267,8 @@ typically it is one parent to many derived.
|
||||
DOCUMENT("Utility function for setting up a custom name to overwrite the auto-generated one.");
|
||||
inline void SetCustomName(const rdcstr &givenName)
|
||||
{
|
||||
// consider an empty name to be un-setting any previous set name, and revert to the
|
||||
// auto-generated name.
|
||||
autogeneratedName = !givenName.isEmpty();
|
||||
name = givenName;
|
||||
autogeneratedName = false;
|
||||
name = givenName.isEmpty() ? "<empty>" : givenName;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user