only save modified values in presets

pull/301/head
Lex Neva 2018-09-01 19:54:34 -04:00
rodzic 29f0e31ccd
commit c3d6780bf1
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -243,9 +243,7 @@ class ParamsTab(ScrolledPanel):
self.update_toggle_state()
def save_preset(self, storage):
preset = storage[self.name] = {}
for name, input in self.param_inputs.iteritems():
preset[name] = input.GetValue()
storage[self.name] = self.get_values()
def update_description(self):
if len(self.nodes) == 1: