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
911691d6
Commit
911691d6
authored
12 years ago
by
Brendon Murphy
Browse files
Options
Downloads
Patches
Plain Diff
small fix for bmesh (face materials)
added warning "some mesh functions broken"
parent
90262b4e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
space_view3d_copy_attributes.py
+4
-3
4 additions, 3 deletions
space_view3d_copy_attributes.py
with
4 additions
and
3 deletions
space_view3d_copy_attributes.py
+
4
−
3
View file @
911691d6
...
@@ -25,6 +25,7 @@ bl_info = {
...
@@ -25,6 +25,7 @@ bl_info = {
"
blender
"
:
(
2
,
6
,
1
),
"
blender
"
:
(
2
,
6
,
1
),
'
location
'
:
'
View3D > Ctrl-C
'
,
'
location
'
:
'
View3D > Ctrl-C
'
,
'
description
'
:
'
Copy Attributes Menu from Blender 2.4
'
,
'
description
'
:
'
Copy Attributes Menu from Blender 2.4
'
,
"
warning
"
:
"
some mesh functions broken
"
,
'
wiki_url
'
:
'
http://wiki.blender.org/index.php/Extensions:2.5/Py/
'
'
wiki_url
'
:
'
http://wiki.blender.org/index.php/Extensions:2.5/Py/
'
'
Scripts/3D_interaction/Copy_Attributes_Menu
'
,
'
Scripts/3D_interaction/Copy_Attributes_Menu
'
,
'
tracker_url
'
:
'
https://projects.blender.org/tracker/index.php?
'
'
tracker_url
'
:
'
https://projects.blender.org/tracker/index.php?
'
...
@@ -691,7 +692,7 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator):
...
@@ -691,7 +692,7 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator):
bpy
.
ops
.
object
.
editmode_toggle
()
bpy
.
ops
.
object
.
editmode_toggle
()
if
mode
==
'
MAT
'
:
if
mode
==
'
MAT
'
:
from_data
=
mesh
.
face
s
from_data
=
mesh
.
polygon
s
to_data
=
from_data
to_data
=
from_data
else
:
else
:
if
mode
==
'
VCOL
'
:
if
mode
==
'
VCOL
'
:
...
@@ -704,9 +705,9 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator):
...
@@ -704,9 +705,9 @@ class MESH_OT_CopyFaceSettings(bpy.types.Operator):
return
_end
({
'
CANCELLED
'
})
return
_end
({
'
CANCELLED
'
})
from_data
=
layers
[
layername
or
act_layer
.
name
].
data
from_data
=
layers
[
layername
or
act_layer
.
name
].
data
to_data
=
act_layer
.
data
to_data
=
act_layer
.
data
from_face
=
from_data
[
mesh
.
face
s
.
active
]
from_face
=
from_data
[
mesh
.
polygon
s
.
active
]
for
f
in
mesh
.
face
s
:
for
f
in
mesh
.
polygon
s
:
if
f
.
select
:
if
f
.
select
:
if
to_data
!=
from_data
:
if
to_data
!=
from_data
:
from_face
=
from_data
[
f
.
index
]
from_face
=
from_data
[
f
.
index
]
...
...
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