make all presets visible on init!!

This commit is contained in:
Max Grossman
2018-12-14 13:29:17 -05:00
parent 1b51b8bc57
commit f627f1e659
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -175,13 +175,13 @@ export function presetIndex() {
};
all.init = function() {
all.collection = [];
all.collection = [];
_recent.collection = [];
_fields = {};
_universal = [];
_index = { point: {}, vertex: {}, line: {}, area: {}, relation: {} };
return all.build(data.presets);
return all.build(data.presets, true);
};
+4 -2
View File
@@ -152,8 +152,10 @@ export function uiPresetList(context) {
function drawList(list, presets) {
var collection = presets.collection.reduce(function(collection, preset) {
if (preset.visible()) {
collection.push(preset.members ? CategoryItem(preset) : PresetItem(preset));
if (preset.members) {
collection.push(CategoryItem(preset));
} else if (preset.visible()) {
collection.push(PresetItem(preset));
}
return collection;
}, []);