Fix bug where adding a representation to a type instance didn't share meshes

This commit is contained in:
Dion Moult
2021-11-06 18:51:00 +11:00
parent 117f663f48
commit 4149292a13
5 changed files with 27 additions and 6 deletions
@@ -76,6 +76,7 @@ class TestAddRepresentation:
# Update mesh
geometry.duplicate_object_data("obj").should_be_called().will_return("data")
geometry.change_object_data("obj", "data", is_global=True).should_be_called()
geometry.get_representation_name("representation").should_be_called().will_return("name")
geometry.rename_object("data", "name").should_be_called()
geometry.link("representation", "data").should_be_called()
@@ -124,6 +125,7 @@ class TestAddRepresentation:
# Update mesh
geometry.duplicate_object_data("obj").should_be_called().will_return("data")
geometry.change_object_data("obj", "data", is_global=True).should_be_called()
geometry.get_representation_name("representation").should_be_called().will_return("name")
geometry.rename_object("data", "name").should_be_called()
geometry.link("representation", "data").should_be_called()