diff options
author | Spivak Vladimir (cwolf3d) <cwolf3d@gmail.com> | 2019-09-20 20:25:53 +0300 |
---|---|---|
committer | Spivak Vladimir (cwolf3d) <cwolf3d@gmail.com> | 2019-09-20 20:25:53 +0300 |
commit | ff3ed157a32f3830d3ced8e1611879120013bd44 (patch) | |
tree | fd6d067d5cd6d52af93b8f7d80e098e440949928 /add_mesh_extra_objects/add_mesh_round_brilliant.py | |
parent | 8bb3714e9570bfcd29bb61179d98e208a7bc1304 (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.py | 2 |
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: |