Skip to content

Commit

Permalink
Fixed error in print statement Arch.OfflineRenderingUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
amrit3701 authored and yorikvanhavre committed May 6, 2020
1 parent f1fe97e commit 68a4294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Arch/OfflineRenderingUtils.py
Expand Up @@ -765,8 +765,8 @@ def buildGuiDocumentFromGuiData(document,guidata):

if len(hex_repr) > 8:
raise NotImplementedError(
f"Number of colors ({len(prop["value"])}) is greater than 4 bytes "
"and in DiffuseColor file we only specify number of colors in 4 bytes."
"Number of colors ({}) is greater than 4 bytes and in DiffuseColor file we only "
"specify number of colors in 4 bytes.".format(len(prop["value"]))
)
elif len(hex_repr) == 2: # `hex_repr` == 1 byte
# fill 3 other bytes (the number of colors occupies 4 bytes)
Expand Down

0 comments on commit 68a4294

Please sign in to comment.