Browse Source

Make Hoikas' suggested changes

Fix up things with better coding!

Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
pull/237/head
Patrick Dulebohn 4 years ago committed by GitHub
parent
commit
79cab5677c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      korman/ui/ui_camera.py

6
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")

Loading…
Cancel
Save