Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
settings.json
preferences.json
bin
deploy.sh
__pycache__/
venv
.venv
settings.json
303 changes: 159 additions & 144 deletions README.md

Large diffs are not rendered by default.

33 changes: 16 additions & 17 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,34 @@
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####
import bpy

from . import lib
from .Settings import MenuModeGroup, OverlaySettings

bl_info = {
"name": "Touch Viewport",
"description": "Creates active touch zones over View 2D and 3D areas for"
"easier viewport navigation with touch screens and pen tablets.",
"author": "NENDO",
"version": (4, 0, 5),
"description": "Creates active touch zones over View 2D and 3D areas for easier viewport navigation with touch screens and pen tablets.",
"author": "NENDO, Karan(b3dhub)",
"blender": (2, 93, 0),
"version": (4, 2, 0),
"category": "3D View",
"location": "View3D > Tools > NENDO",
"warning": "",
"doc_url": "",
"doc_url": "https://github.com/nendotools/touchview",
"tracker_url": "https://github.com/nendotools/touchview/issues",
"category": "3D View",
}


import bpy

from . import preferences, source


def register():
bpy.utils.register_class(MenuModeGroup)
bpy.utils.register_class(OverlaySettings)
bpy.context.preferences.addons[__package__.split(".")[0]].preferences.load() # type: ignore
lib.register()
source.register()
preferences.register()
bpy.context.preferences.addons[__package__].preferences.load() # type: ignore


def unregister():
lib.unregister()
bpy.context.preferences.addons[__package__.split(".")[0]].preferences.save() # type: ignore
bpy.utils.unregister_class(OverlaySettings)
bpy.utils.unregister_class(MenuModeGroup)
bpy.context.preferences.addons[__package__].preferences.save() # type: ignore
source.unregister()
preferences.unregister()
36 changes: 36 additions & 0 deletions blender_manifest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
schema_version = "1.0.0"

id = "touchview"
version = "4.2.0"
name = "Touch Viewport"
tagline = "Creates active touch zones over View 2D and 3D areas for easier viewport navigation with touch screens and pen tablets"
maintainer = "NENDO, Karan(b3dhub)"
type = "add-on"

permissions = ["files"]

website = "https://github.com/nendotools/touchview"

# Optional list defined by Blender and server, see:
# https://docs.blender.org/manual/en/dev/extensions/tags.html
tags = ["3D View", "User Interface"]

blender_version_min = "4.2.0"

# License conforming to https://spdx.org/licenses/ (use "SPDX: prefix)
license = ["SPDX:GPL-2.0-or-later"]

[build]
paths_exclude_pattern = [
"__pycache__/",
"/.git/",
"docs/",
".gitignore",
"/*.zip",
"/bin",
"settings.json",
"bundle.sh",
"mypy.ini",
"requirements.txt",
"README.md"
]
4 changes: 2 additions & 2 deletions bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ bundle ()
dir="bin/touchview"
mkdir -p "$dir"
cp "__init__.py" "$dir"
cp "Settings.py" "$dir"
cp -r "lib" "$dir"
cp "preferences.py" "$dir"
cp -r "source" "$dir"
cd "$dest"
zip -r "touchview.zip" "touchview"
cd ".."
Expand Down
282 changes: 0 additions & 282 deletions lib/Panel.py

This file was deleted.

Loading
Loading