kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Fix domain type parsing #128
rodzic
b4777baca4
commit
74ca12240f
|
@ -75,12 +75,14 @@ module.exports = {
|
|||
|
||||
switch((values.type || "").trim()){
|
||||
case "<type 'int'>":
|
||||
case "<class 'int'>":
|
||||
type = "int";
|
||||
value = values['default'] !== undefined ?
|
||||
parseInt(values['default']) :
|
||||
0;
|
||||
break;
|
||||
case "<type 'float'>":
|
||||
case "<class 'float'>":
|
||||
type = "float";
|
||||
value = values['default'] !== undefined ?
|
||||
parseFloat(values['default']) :
|
||||
|
|
File diff suppressed because one or more lines are too long
Ładowanie…
Reference in New Issue