From 2b689610e30f86cf068ba7f519120e87048e4119 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 3 Feb 2024 21:43:52 -0500 Subject: [PATCH] Fix #401. Enable the Blender camera lens panel for use in game GUIs. --- korman/render.py | 4 ++++ korman/ui/ui_camera.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/korman/render.py b/korman/render.py index 2ce7de6..9677754 100644 --- a/korman/render.py +++ b/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 diff --git a/korman/ui/ui_camera.py b/korman/ui/ui_camera.py index ca30deb..bba85d0 100644 --- a/korman/ui/ui_camera.py +++ b/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