Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
0ff800fd
Commit
0ff800fd
authored
7 years ago
by
Sybren A. Stüvel
Browse files
Options
Downloads
Patches
Plain Diff
Bone Selection Sets: formatting according to PEP-8
parent
e5571d31
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bone_selection_sets.py
+21
-21
21 additions, 21 deletions
bone_selection_sets.py
with
21 additions
and
21 deletions
bone_selection_sets.py
+
21
−
21
View file @
0ff800fd
...
...
@@ -31,18 +31,18 @@ bl_info = {
import
bpy
from
bpy.types
import
(
Operator
,
Menu
,
Panel
,
UIList
,
PropertyGroup
,
)
Operator
,
Menu
,
Panel
,
UIList
,
PropertyGroup
,
)
from
bpy.props
import
(
StringProperty
,
IntProperty
,
EnumProperty
,
CollectionProperty
,
)
StringProperty
,
IntProperty
,
EnumProperty
,
CollectionProperty
,
)
# Data Structure ##############################################################
...
...
@@ -134,7 +134,7 @@ class POSE_MT_create_new_selection_set(Menu):
def
draw
(
self
,
context
):
layout
=
self
.
layout
layout
.
operator
(
"
pose.selection_set_add_and_assign
"
,
text
=
"
New Selection Set
"
)
text
=
"
New Selection Set
"
)
class
POSE_MT_selection_sets
(
Menu
):
...
...
@@ -306,7 +306,7 @@ class POSE_OT_selection_set_assign(PluginOperator):
if
not
(
arm
.
active_selection_set
<
len
(
arm
.
selection_sets
)):
bpy
.
ops
.
wm
.
call_menu
(
"
INVOKE_DEFAULT
"
,
name
=
"
POSE_MT_selection_set_create
"
)
name
=
"
POSE_MT_selection_set_create
"
)
else
:
bpy
.
ops
.
pose
.
selection_set_assign
(
'
EXEC_DEFAULT
'
)
...
...
@@ -432,15 +432,15 @@ def register():
bpy
.
utils
.
register_class
(
cls
)
bpy
.
types
.
Object
.
selection_sets
=
CollectionProperty
(
type
=
SelectionSet
,
name
=
"
Selection Sets
"
,
description
=
"
List of groups of bones for easy selection
"
)
type
=
SelectionSet
,
name
=
"
Selection Sets
"
,
description
=
"
List of groups of bones for easy selection
"
)
bpy
.
types
.
Object
.
active_selection_set
=
IntProperty
(
name
=
"
Active Selection Set
"
,
description
=
"
Index of the currently active selection set
"
,
default
=
0
)
name
=
"
Active Selection Set
"
,
description
=
"
Index of the currently active selection set
"
,
default
=
0
)
wm
=
bpy
.
context
.
window_manager
km
=
wm
.
keyconfigs
.
active
.
keymaps
[
'
Pose
'
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment