Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons-contrib
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-contrib
Commits
c35e4f3b
Commit
c35e4f3b
authored
6 years ago
by
kostex
Browse files
Options
Downloads
Patches
Plain Diff
mesh_selectbuffer: classnames 2.80 compliance
parent
a08602a5
Branches
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
mesh_selectbuffer.py
+13
-13
13 additions, 13 deletions
mesh_selectbuffer.py
with
13 additions
and
13 deletions
mesh_selectbuffer.py
+
13
−
13
View file @
c35e4f3b
...
...
@@ -25,7 +25,7 @@ bl_info = {
"
name
"
:
"
KTX Selectbuffer
"
,
"
description
"
:
"
Enable boolean operations on selections
"
,
"
author
"
:
"
Roel Koster, @koelooptiemanna, irc:kostex
"
,
"
version
"
:
(
1
,
4
,
0
),
"
version
"
:
(
1
,
4
,
1
),
"
blender
"
:
(
2
,
80
,
0
),
"
location
"
:
"
View3D > Properties
"
,
"
warning
"
:
""
,
...
...
@@ -38,9 +38,9 @@ class Oldbuffer:
data
=
[]
class
KTX
_Selectbuffer
_Mutate
(
bpy
.
types
.
Operator
):
class
KTX
SELECTBUFFER_OT
_Mutate
(
bpy
.
types
.
Operator
):
bl_label
=
"
select buffer mutate
"
bl_idname
=
"
ktx
.
selectbuffer
_
mutate
"
bl_idname
=
"
ktxselectbuffer
.
mutate
"
bl_description
=
(
"
A.union(B) elements from both A and B
\n
"
"
A.difference(B) elements in A but not in B
\n
"
"
A.symmetric_difference(B) elements in either A or B but not both
\n
"
...
...
@@ -91,9 +91,9 @@ class KTX_Selectbuffer_Mutate(bpy.types.Operator):
return
{
'
FINISHED
'
}
class
KTX
_Selectbuffer
(
bpy
.
types
.
Panel
):
class
KTX
SELECTBUFFER_PT_Panel
(
bpy
.
types
.
Panel
):
bl_label
=
"
KTX Selectbuffer
"
bl_idname
=
"
ktx.selectbuffer
"
bl_idname
=
"
KTXSELECTBUFFER_PT_Panel
"
bl_space_type
=
'
VIEW_3D
'
bl_region_type
=
'
UI
'
...
...
@@ -108,12 +108,12 @@ class KTX_Selectbuffer(bpy.types.Panel):
if
obj
.
type
==
'
MESH
'
:
c_mode
=
bpy
.
context
.
object
.
mode
if
c_mode
==
'
EDIT
'
:
col
.
operator
(
"
ktx
.
selectbuffer
_
mutate
"
,
text
=
"
Set
"
).
operation
=
'
set
'
col
.
operator
(
"
ktx
.
selectbuffer
_
mutate
"
,
text
=
"
Clear
"
).
operation
=
'
clear
'
col
.
operator
(
"
ktx
.
selectbuffer
_
mutate
"
,
text
=
"
Union
"
).
operation
=
'
union
'
col
.
operator
(
"
ktx
.
selectbuffer
_
mutate
"
,
text
=
"
Difference
"
).
operation
=
'
difference
'
col
.
operator
(
"
ktx
.
selectbuffer
_
mutate
"
,
text
=
"
Symmetric Difference
"
).
operation
=
'
sym_difference
'
col
.
operator
(
"
ktx
.
selectbuffer
_
mutate
"
,
text
=
"
Intersection
"
).
operation
=
'
intersection
'
col
.
operator
(
"
ktxselectbuffer
.
mutate
"
,
text
=
"
Set
"
).
operation
=
'
set
'
col
.
operator
(
"
ktxselectbuffer
.
mutate
"
,
text
=
"
Clear
"
).
operation
=
'
clear
'
col
.
operator
(
"
ktxselectbuffer
.
mutate
"
,
text
=
"
Union
"
).
operation
=
'
union
'
col
.
operator
(
"
ktxselectbuffer
.
mutate
"
,
text
=
"
Difference
"
).
operation
=
'
difference
'
col
.
operator
(
"
ktxselectbuffer
.
mutate
"
,
text
=
"
Symmetric Difference
"
).
operation
=
'
sym_difference
'
col
.
operator
(
"
ktxselectbuffer
.
mutate
"
,
text
=
"
Intersection
"
).
operation
=
'
intersection
'
else
:
col
.
label
(
text
=
'
Enter EDIT Mode to use
'
)
else
:
...
...
@@ -121,8 +121,8 @@ class KTX_Selectbuffer(bpy.types.Panel):
classes
=
(
KTX
_Selectbuffer
,
KTX
_Selectbuffer_Mutate
KTX
SELECTBUFFER_OT_Mutate
,
KTX
SELECTBUFFER_PT_Panel
)
...
...
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