mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Skingroup image export order based on texture node position (height) in shader editor. Nodes with higher position are exported first.
This commit is contained in:
parent
4f29f57e77
commit
94c3c8c2cb
1 changed files with 3 additions and 1 deletions
|
@ -105,7 +105,9 @@ def make_skin(operator, mdl, mesh):
|
|||
skingroup.type = 1
|
||||
skingroup.skins = []
|
||||
skingroup.times = []
|
||||
for node in allNodes:
|
||||
sortedNodes = list(allNodes)
|
||||
sortedNodes.sort(key=lambda x: x.location[1], reverse=True)
|
||||
for node in sortedNodes:
|
||||
if node.type == "TEX_IMAGE":
|
||||
image = node.image
|
||||
mdl.skinwidth, mdl.skinheight = image.size
|
||||
|
|
Loading…
Reference in a new issue