This commit is contained in:
2025-11-24 22:26:56 +08:00
parent e4c713035b
commit 719058ff01
8 changed files with 310 additions and 33 deletions

View File

@@ -399,8 +399,13 @@ def matchDictionaryToSceneMeshes(weightDictionary, selected=False):
if vtxCountMatch(sceneNode, weightDictionary[dictNodeName]["vtxCount"]):
# found match on both name and vtxcount, copy info to the local sceneWeightDict
if pm:
sceneWeightDict[sceneNode.name()] = weightDictionary[dictNodeName]
validNodeList.append(sceneNode.name())
# 安全获取节点名称
try:
node_name = str(sceneNode.name()) if hasattr(sceneNode, 'name') else str(sceneNode)
except:
node_name = str(sceneNode)
sceneWeightDict[node_name] = weightDictionary[dictNodeName]
validNodeList.append(node_name)
else:
sceneWeightDict[sceneNode] = weightDictionary[dictNodeName]
validNodeList.append(sceneNode)