Skip to content

Commit

Permalink
txdef.Textures: set texture name in simple
Browse files Browse the repository at this point in the history
Otherwise all generated textures have the name "-".
  • Loading branch information
jmtd committed Mar 4, 2021
1 parent 9dcabda commit c1c8030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omg/txdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ def simple(self, name, plump):
"""Create a simple texture with a given name, from a given lump."""
self[name] = TextureDef()
self[name].patches.append(PatchDef())
self[name].patches[0].name = name
self[name].patches[0].name = self[name].name = name
self[name].width, self[name].height = plump.dimensions

0 comments on commit c1c8030

Please sign in to comment.