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
bfe73b4c
Commit
bfe73b4c
authored
6 years ago
by
Brecht Van Lommel
Browse files
Options
Downloads
Patches
Plain Diff
Copy Attributes: update for latest API changes.
parent
964a38d0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
space_view3d_copy_attributes.py
+11
-11
11 additions, 11 deletions
space_view3d_copy_attributes.py
with
11 additions
and
11 deletions
space_view3d_copy_attributes.py
+
11
−
11
View file @
bfe73b4c
...
@@ -112,11 +112,11 @@ def getmat(bone, active, context, ignoreparent):
...
@@ -112,11 +112,11 @@ def getmat(bone, active, context, ignoreparent):
else
:
else
:
parentposemat
=
parentbonemat
=
Matrix
()
parentposemat
=
parentbonemat
=
Matrix
()
if
parentbonemat
==
parentposemat
or
ignoreparent
:
if
parentbonemat
==
parentposemat
or
ignoreparent
:
newmat
=
bonemat_local
.
inverted
()
*
otherloc
newmat
=
bonemat_local
.
inverted
()
@
otherloc
else
:
else
:
bonemat
=
parentbonemat
.
inverted
()
*
bonemat_local
bonemat
=
parentbonemat
.
inverted
()
@
bonemat_local
newmat
=
bonemat
.
inverted
()
*
parentposemat
.
inverted
()
*
otherloc
newmat
=
bonemat
.
inverted
()
@
parentposemat
.
inverted
()
@
otherloc
return
newmat
return
newmat
...
@@ -248,7 +248,7 @@ class CopySelectedPoseConstraints(Operator):
...
@@ -248,7 +248,7 @@ class CopySelectedPoseConstraints(Operator):
bl_idname
=
"
pose.copy_selected_constraints
"
bl_idname
=
"
pose.copy_selected_constraints
"
bl_label
=
"
Copy Selected Constraints
"
bl_label
=
"
Copy Selected Constraints
"
selection
=
BoolVectorProperty
(
selection
:
BoolVectorProperty
(
size
=
32
,
size
=
32
,
options
=
{
'
SKIP_SAVE
'
}
options
=
{
'
SKIP_SAVE
'
}
)
)
...
@@ -307,9 +307,9 @@ def obLoopExec(self, context, funk):
...
@@ -307,9 +307,9 @@ def obLoopExec(self, context, funk):
def
world_to_basis
(
active
,
ob
,
context
):
def
world_to_basis
(
active
,
ob
,
context
):
"""
put world coords of active as basis coords of ob
"""
"""
put world coords of active as basis coords of ob
"""
local
=
ob
.
parent
.
matrix_world
.
inverted
()
*
active
.
matrix_world
local
=
ob
.
parent
.
matrix_world
.
inverted
()
@
active
.
matrix_world
P
=
ob
.
matrix_basis
*
ob
.
matrix_local
.
inverted
()
P
=
ob
.
matrix_basis
@
ob
.
matrix_local
.
inverted
()
mat
=
P
*
local
mat
=
P
@
local
return
(
mat
)
return
(
mat
)
...
@@ -551,7 +551,7 @@ class CopySelectedObjectConstraints(Operator):
...
@@ -551,7 +551,7 @@ class CopySelectedObjectConstraints(Operator):
bl_idname
=
"
object.copy_selected_constraints
"
bl_idname
=
"
object.copy_selected_constraints
"
bl_label
=
"
Copy Selected Constraints
"
bl_label
=
"
Copy Selected Constraints
"
selection
=
BoolVectorProperty
(
selection
:
BoolVectorProperty
(
size
=
32
,
size
=
32
,
options
=
{
'
SKIP_SAVE
'
}
options
=
{
'
SKIP_SAVE
'
}
)
)
...
@@ -585,7 +585,7 @@ class CopySelectedObjectModifiers(Operator):
...
@@ -585,7 +585,7 @@ class CopySelectedObjectModifiers(Operator):
bl_idname
=
"
object.copy_selected_modifiers
"
bl_idname
=
"
object.copy_selected_modifiers
"
bl_label
=
"
Copy Selected Modifiers
"
bl_label
=
"
Copy Selected Modifiers
"
selection
=
BoolVectorProperty
(
selection
:
BoolVectorProperty
(
size
=
32
,
size
=
32
,
options
=
{
'
SKIP_SAVE
'
}
options
=
{
'
SKIP_SAVE
'
}
)
)
...
@@ -757,11 +757,11 @@ class MESH_OT_CopyFaceSettings(Operator):
...
@@ -757,11 +757,11 @@ class MESH_OT_CopyFaceSettings(Operator):
bl_label
=
"
Copy Face Settings
"
bl_label
=
"
Copy Face Settings
"
bl_options
=
{
'
REGISTER
'
,
'
UNDO
'
}
bl_options
=
{
'
REGISTER
'
,
'
UNDO
'
}
mode
=
StringProperty
(
mode
:
StringProperty
(
name
=
"
Mode
"
,
name
=
"
Mode
"
,
options
=
{
"
HIDDEN
"
},
options
=
{
"
HIDDEN
"
},
)
)
layer
=
StringProperty
(
layer
:
StringProperty
(
name
=
"
Layer
"
,
name
=
"
Layer
"
,
options
=
{
"
HIDDEN
"
},
options
=
{
"
HIDDEN
"
},
)
)
...
...
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