mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 22:39:02 +08:00
New duplicated favorite material will be added to favorite category
CURA-5673
This commit is contained in:
parent
c59ff82c64
commit
5db008f763
@ -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…
x
Reference in New Issue
Block a user