Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_round_brilliant.py')
-rw-r--r--add_mesh_extra_objects/add_mesh_round_brilliant.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/add_mesh_extra_objects/add_mesh_round_brilliant.py b/add_mesh_extra_objects/add_mesh_round_brilliant.py
index 6d795795..be386770 100644
--- a/add_mesh_extra_objects/add_mesh_round_brilliant.py
+++ b/add_mesh_extra_objects/add_mesh_round_brilliant.py
@@ -433,6 +433,8 @@ class MESH_OT_primitive_brilliant_add(Operator):
self.keep_lga, self.g_real_smooth
)
obj.data = mesh
+ for material in oldmesh.materials:
+ obj.data.materials.append(material)
bpy.data.meshes.remove(oldmesh)
obj.data.name = oldmeshname
else: