When renaming a layer to a (long) name that was already taken by another layer, Blender would crash. This was because the memory for the unique string was held by `std::string` which cannot grow. The solution is to use `char unique_name[MAX_NAME]`.
When renaming a layer to a (long) name that was already taken by another layer, Blender would crash. This was because the memory for the unique string was held by `std::string` which cannot grow. The solution is to use `char unique_name[MAX_NAME]`.