Added new auto switches logging
+Added an option in the Constants to log new automatically resolved switch definitions
This commit is contained in:
parent
606f4a3a5f
commit
0aafbe6960
@ -4,7 +4,8 @@ const Constants = {
|
||||
trackSlopeScale: 10,
|
||||
},
|
||||
parser: {
|
||||
forceAutoSwitches: false
|
||||
forceAutoSwitches: false,
|
||||
logNewAutoSwitches: true
|
||||
},
|
||||
warnings: {
|
||||
all: false, // enable all warnings
|
||||
|
||||
@ -164,7 +164,7 @@ export default class Switch extends SceneryObject {
|
||||
];
|
||||
|
||||
if(!DefinedSwitches[this.bare_model]) DefinedSwitches[this.bare_model] = newDef;
|
||||
// console.log(newDef);
|
||||
if(Constants.parser.logNewAutoSwitches) console.log(this.bare_model, newDef);
|
||||
return newDef;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user