mirrored from https://projects.blender.org/blender/blender-addons.git
-
Notifications
You must be signed in to change notification settings - Fork 192
/
Copy path__init__.py
61 lines (52 loc) · 1.42 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# SPDX-FileCopyrightText: 2020-2023 Blender Foundation
#
# SPDX-License-Identifier: GPL-2.0-or-later
bl_info = {
"name": "Grease Pencil Tools",
"description": "Extra tools for Grease Pencil",
"author": "Samuel Bernou, Antonio Vazquez, Daniel Martinez Lara, Matias Mendiola",
"version": (1, 8, 3),
"blender": (3, 0, 0),
"location": "Sidebar > Grease Pencil > Grease Pencil Tools",
"warning": "",
"doc_url": "{BLENDER_MANUAL_URL}/addons/object/greasepencil_tools.html",
"tracker_url": "https://github.com/Pullusb/greasepencil-addon/issues",
"category": "Object",
"support": "COMMUNITY",
}
import bpy
from . import (prefs,
box_deform,
line_reshape,
rotate_canvas,
layer_navigator,
timeline_scrub,
draw_tools,
import_brush_pack,
ui_panels,
)
modules = (
prefs,
box_deform,
line_reshape,
rotate_canvas,
layer_navigator,
timeline_scrub,
draw_tools,
import_brush_pack,
ui_panels,
)
def register():
if bpy.app.background:
return
for mod in modules:
mod.register()
## Update tab name with update in pref file (passing addon_prefs)
prefs.update_panel(prefs.get_addon_prefs(), bpy.context)
def unregister():
if bpy.app.background:
return
for mod in modules:
mod.unregister()
if __name__ == "__main__":
register()