From 1958342a7405b187229003dc6ece3aa614c338cd Mon Sep 17 00:00:00 2001 From: LeenkxTeam Date: Wed, 29 Jan 2025 08:11:04 +0000 Subject: [PATCH] Add leenkx/blender/lnx/logicnode/browser/LN_detect_mobile_browser.py --- .../lnx/logicnode/browser/LN_detect_mobile_browser.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 leenkx/blender/lnx/logicnode/browser/LN_detect_mobile_browser.py diff --git a/leenkx/blender/lnx/logicnode/browser/LN_detect_mobile_browser.py b/leenkx/blender/lnx/logicnode/browser/LN_detect_mobile_browser.py new file mode 100644 index 0000000..49b33dc --- /dev/null +++ b/leenkx/blender/lnx/logicnode/browser/LN_detect_mobile_browser.py @@ -0,0 +1,10 @@ +from lnx.logicnode.lnx_nodes import * + +class DetectMobileBrowserNode(LnxLogicTreeNode): + """Determines the mobile browser or not (works only for web browsers).""" + bl_idname = 'LNDetectMobileBrowserNode' + bl_label = 'Detect Mobile Browser' + lnx_version = 1 + + def lnx_init(self, context): + self.add_output('LnxBoolSocket', 'Mobile')