Skip to content

Commit

Permalink
Merge pull request godotengine#100624 from Repiteo/scons/node-count-fix
Browse files Browse the repository at this point in the history
SCons: Don't update node count when cleaning
  • Loading branch information
akien-mga committed Jan 3, 2025
2 parents 5a8b718 + b536b3e commit efae48a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,12 +872,12 @@ def __init__(self):
self.max = int(f.readline())
except OSError:
pass
if self.max == 0:
print("NOTE: Performing initial build, progress percentage unavailable!")

# Progress reporting is not available in non-TTY environments since it
# messes with the output (for example, when writing to a file).
self.display = cast(bool, self.max and env["progress"] and IS_TTY)
if self.display and not self.max:
print_info("Performing initial build, progress percentage unavailable!")

def __call__(self, node, *args, **kw):
self.count += 1
Expand All @@ -893,7 +893,7 @@ def __call__(self, node, *args, **kw):
Progress(progressor)

def progress_finish():
if len(GetBuildFailures()):
if GetBuildFailures() or not progressor.count:
return
try:
with open(NODE_COUNT_FILENAME, "w", encoding="utf-8", newline="\n") as f:
Expand Down

0 comments on commit efae48a

Please sign in to comment.