diff --git a/korman/ui/ui_camera.py b/korman/ui/ui_camera.py index 8b8b713..c8d3192 100644 --- a/korman/ui/ui_camera.py +++ b/korman/ui/ui_camera.py @@ -92,7 +92,7 @@ def draw_camera_poa_props(layout, cam_type, props): col.prop(trans, "poa_deceleration", text="Deceleration") col.prop(trans, "poa_velocity", text="Maximum Velocity") col = col.column() - col.active = cam_type == "follow" or cam_type == "firstperson" + col.active = cam_type in {"firstperson", "follow"} col.prop(trans, "poa_cut", text="Cut Animation") # PoA Offset @@ -118,12 +118,12 @@ def draw_camera_pos_props(layout, cam_type, props): _draw_alert_prop(col, trans, "pos_velocity", cam_type, alert_cam="rail", max=10.0, text="Maximum Velocity") col = col.column() - col.active = cam_type == "follow" or cam_type == "firstperson" + col.active = cam_type in {"firstperson", "follow"} col.prop(trans, "pos_cut", text="Cut Animation") # Position Offsets col = split.column() - col.active = cam_type == "follow" or cam_type == "firstperson" + col.active = cam_type in {"firstperson", "follow"} col.label("Position Offset:") col.prop(props, "pos_offset", text="") col.prop(props, "pos_worldspace")