avoid specifying per-family-values for inactive families
This commit is contained in:
parent
feb6978255
commit
f63e8fe34e
2
PRIVATE
2
PRIVATE
|
@ -1 +1 @@
|
|||
Subproject commit c9eed718041d098d7695871c1b123eae950b141d
|
||||
Subproject commit d8ab8056d6245ce42bec8953de9af1d7754867cf
|
|
@ -267,3 +267,14 @@ class Material():
|
|||
if newlen is not oldlen:
|
||||
print('Length of value was changed from %i to %i!'%(oldlen,newlen))
|
||||
|
||||
def add_value(self, part=None,
|
||||
section=None,
|
||||
key=None,
|
||||
value=None):
|
||||
if not isinstance(value,list):
|
||||
if not isinstance(value,str):
|
||||
value = '%s'%value
|
||||
value = [value]
|
||||
print('adding %s:%s:%s with value %s '%(part.lower(),section.lower(),key.lower(),value))
|
||||
self.data[part.lower()][section.lower()][key.lower()] = value
|
||||
self.data[part.lower()][section.lower()]['__order__'] += [key.lower()]
|
||||
|
|
Loading…
Reference in New Issue