Browse Source

Fix #401.

Enable the Blender camera lens panel for use in game GUIs.
pull/256/merge
Adam Johnson 3 months ago
parent
commit
2b689610e3
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 4
      korman/render.py
  2. 2
      korman/ui/ui_camera.py

4
korman/render.py

@ -59,6 +59,10 @@ properties_data_lamp.DATA_PT_falloff_curve.COMPAT_ENGINES.add("PLASMA_GAME")
properties_data_lamp.DATA_PT_custom_props_lamp.COMPAT_ENGINES.add("PLASMA_GAME")
del properties_data_lamp
from bl_ui import properties_data_camera
properties_data_camera.DATA_PT_lens.COMPAT_ENGINES.add("PLASMA_GAME")
del properties_data_camera
from bl_ui import properties_render
_whitelist_all(properties_render)
del properties_render

2
korman/ui/ui_camera.py

@ -226,7 +226,7 @@ class PlasmaCameraAnimationPanel(CameraButtonsPanel, bpy.types.Panel):
class PlasmaCameraViewPanel(CameraButtonsPanel, bpy.types.Panel):
bl_label = "Camera Lens"
bl_label = "Lens (Plasma)"
def draw(self, context):
camera = context.camera.plasma_camera

Loading…
Cancel
Save