From 79cab5677c50f1a9f03e17ab2e5334ac70349b11 Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn <40325124+DoobesURU@users.noreply.github.com> Date: Tue, 23 Feb 2021 18:57:58 -0500 Subject: [PATCH] Make Hoikas' suggested changes Fix up things with better coding! Co-authored-by: Adam Johnson --- korman/ui/ui_camera.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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")