Skip to content

Commit

Permalink
do not override gui states if they are already set
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Jan 28, 2020
1 parent 2b00c0e commit c210e9d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pyblish_lite/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,14 @@ def append(self, item):

# GUI-only data
item._type = "instance"
item._has_succeeded = False
item._has_failed = False
item._is_idle = True
if not hasattr(item, "_has_succeeded"):
item._has_succeeded = False

if not hasattr(item, "_has_failed"):
item._has_failed = False

if not hasattr(item, "_is_idle"):
item._is_idle = False

# Merge `family` and `families` for backwards compatibility
family = item.data["family"]
Expand Down

0 comments on commit c210e9d

Please sign in to comment.