mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
if v:
This commit is contained in:
parent
d0c5a5ffb5
commit
09b28bbc2a
1 changed files with 2 additions and 2 deletions
|
@ -458,7 +458,7 @@ class BaseNode(BaseObject):
|
|||
self._cmdVars[name] = '--{name} {value}'.format(name=name, value=v)
|
||||
self._cmdVars[name + 'Value'] = str(v)
|
||||
|
||||
if v not in (None, ''):
|
||||
if v:
|
||||
self._cmdVars[attr.attributeDesc.group] = self._cmdVars.get(attr.attributeDesc.group, '') + \
|
||||
' ' + self._cmdVars[name]
|
||||
|
||||
|
@ -477,7 +477,7 @@ class BaseNode(BaseObject):
|
|||
self._cmdVars[name] = '--{name} {value}'.format(name=name, value=v)
|
||||
self._cmdVars[name + 'Value'] = str(v)
|
||||
|
||||
if v not in (None, ''):
|
||||
if v:
|
||||
self._cmdVars[attr.attributeDesc.group] = self._cmdVars.get(attr.attributeDesc.group, '') + \
|
||||
' ' + self._cmdVars[name]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue