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:
authorSpivak Vladimir (cwolf3d) <cwolf3d@gmail.com>2019-09-20 20:25:53 +0300
committerSpivak Vladimir (cwolf3d) <cwolf3d@gmail.com>2019-09-20 20:25:53 +0300
commitff3ed157a32f3830d3ced8e1611879120013bd44 (patch)
treefd6d067d5cd6d52af93b8f7d80e098e440949928 /add_mesh_extra_objects/add_mesh_round_brilliant.py
parent8bb3714e9570bfcd29bb61179d98e208a7bc1304 (diff)
Addon: Mesh Extra Objects: Added restore materials if you go back to change parameters in Gear, WormGear, WallFactory, Beam, Pipe, Gem, Brilliant
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: