mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
New duplicated favorite material will be added to favorite category
CURA-5673
This commit is contained in:
parent
c59ff82c64
commit
5db008f763
1 changed files with 6 additions and 0 deletions
|
@ -590,6 +590,12 @@ class MaterialManager(QObject):
|
|||
for container_to_add in new_containers:
|
||||
container_to_add.setDirty(True)
|
||||
self._container_registry.addContainer(container_to_add)
|
||||
|
||||
|
||||
#if duplicated material was favorite then new material should also be added to favorite.
|
||||
if root_material_id in self.getFavorites():
|
||||
self.addFavorite(new_base_id)
|
||||
|
||||
return new_base_id
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue