Update
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user