{lyn5525} fixing the chunk mesh group logic for the Blast gem (#7202)

fixing the chunk mesh group logic for the Blast gem so that the
chunks are defined both as a selected mesh node and unselect all
the rest of the mesh nodes

Signed-off-by: Allen Jackson <23512001+jackalbe@users.noreply.github.com>
This commit is contained in:
Allen Jackson
2022-01-27 18:33:49 -06:00
committed by GitHub
parent 8ecaaf36c0
commit 226fa6ab09
@@ -123,6 +123,10 @@ def update_manifest(scene):
meshGroup = sceneManifest.add_mesh_group(meshGroupName)
meshGroup['id'] = '{' + str(uuid.uuid5(uuid.NAMESPACE_DNS, sourceFilenameOnly + chunkPath)) + '}'
sceneManifest.mesh_group_select_node(meshGroup, chunkPath)
# un-select all other mesh nodes
for otherMeshIndex, otherMeshName in enumerate(meshNameList):
if otherMeshName is not chunkName:
sceneManifest.mesh_group_unselect_node(meshGroup, otherMeshName.get_path())
# combine both scene manifests so the OnPrepareForExport will be called
originalManifest = json.loads(scene.manifest.ExportToJson())