Closed vkribo closed 5 years ago
In setter of an enum property there must be a cast of value to int.
Code: conn = krpc.connect() mj = conn.mech_jeb smart_ass = mj.smart_ass smart_ass.autopilot_mode = mj.SmartASSAutopilotMode.surface
conn = krpc.connect()
mj = conn.mech_jeb
smart_ass = mj.smart_ass
smart_ass.autopilot_mode = mj.SmartASSAutopilotMode.surface
Assigning to the autopilot_mode property was causing ValueError. The same thing happens with other enum properties.
In setter of an enum property there must be a cast of value to int.
Code:
conn = krpc.connect()
mj = conn.mech_jeb
smart_ass = mj.smart_ass
smart_ass.autopilot_mode = mj.SmartASSAutopilotMode.surface
Assigning to the autopilot_mode property was causing ValueError. The same thing happens with other enum properties.