Fixup for view3d collection name drawing when no active object

This commit is contained in:
Dalai Felinto 2018-11-13 21:30:10 -02:00
parent ae6e84471a
commit 79fa8f193b
1 changed files with 1 additions and 1 deletions

View File

@ -1133,7 +1133,7 @@ static void draw_selected_name(Scene *scene, ViewLayer *view_layer, Object *ob,
if ((ob == NULL) || (ob->mode == OB_MODE_OBJECT)) {
LayerCollection *layer_collection = view_layer->active_collection;
s += sprintf(s, " %s |", BKE_collection_ui_name_get(layer_collection->collection));
s += sprintf(s, " %s%s", BKE_collection_ui_name_get(layer_collection->collection), (ob == NULL) ? "" : " |");
}
/*