Skip to content

Commit 2b68961

Browse files
committed
Fix #401.
Enable the Blender camera lens panel for use in game GUIs.
1 parent 4414f2d commit 2b68961

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

korman/render.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ def _whitelist_all(mod):
5959
properties_data_lamp.DATA_PT_custom_props_lamp.COMPAT_ENGINES.add("PLASMA_GAME")
6060
del properties_data_lamp
6161

62+
from bl_ui import properties_data_camera
63+
properties_data_camera.DATA_PT_lens.COMPAT_ENGINES.add("PLASMA_GAME")
64+
del properties_data_camera
65+
6266
from bl_ui import properties_render
6367
_whitelist_all(properties_render)
6468
del properties_render

korman/ui/ui_camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def draw_header(self, context):
226226

227227

228228
class PlasmaCameraViewPanel(CameraButtonsPanel, bpy.types.Panel):
229-
bl_label = "Camera Lens"
229+
bl_label = "Lens (Plasma)"
230230

231231
def draw(self, context):
232232
camera = context.camera.plasma_camera

0 commit comments

Comments
 (0)