From 14ade9585e5bf84a1c3aac71832e9049664528f7 Mon Sep 17 00:00:00 2001 From: Val Date: Wed, 6 May 2026 11:09:51 +0300 Subject: [PATCH 1/2] FIX: updated material preview scene template --- ...material_preview_sceneTemplate.nausd_scene | 13 ++++++++++ .../material_preview_sceneTemplate.usda | 24 ------------------- 2 files changed, 13 insertions(+), 24 deletions(-) create mode 100644 project_templates/empty/templates/material_preview_sceneTemplate.nausd_scene delete mode 100644 project_templates/empty/templates/material_preview_sceneTemplate.usda diff --git a/project_templates/empty/templates/material_preview_sceneTemplate.nausd_scene b/project_templates/empty/templates/material_preview_sceneTemplate.nausd_scene new file mode 100644 index 00000000..bfe2b694 --- /dev/null +++ b/project_templates/empty/templates/material_preview_sceneTemplate.nausd_scene @@ -0,0 +1,13 @@ +#nausd_scene 1.0 +{ + defaultPrim = "PreviewMesh" +} + +def NauAssetMesh "PreviewMesh" ( + displayName = "PreviewMesh" + prepend references = @../content/meshes/sphere.usda.nausd@ +) +{ + matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 1, 0, 1) ) + uniform token[] xformOpOrder = ["xformOp:transform"] +} \ No newline at end of file diff --git a/project_templates/empty/templates/material_preview_sceneTemplate.usda b/project_templates/empty/templates/material_preview_sceneTemplate.usda deleted file mode 100644 index 3bbacb67..00000000 --- a/project_templates/empty/templates/material_preview_sceneTemplate.usda +++ /dev/null @@ -1,24 +0,0 @@ -#usda 1.0 -( - defaultPrim = "PreviewMesh" -) - -def NauAssetMesh "PreviewMesh" ( - displayName = "PreviewMesh" -) -{ - bool flipU = 0 - bool flipV = 0 - bool generateCollider = 0 - bool generateLods = 0 - bool generateTangents = 1 - bool ignoreAnimation = 0 - rel meshSource - asset path = @asset:/content/meshes/sphere.usda@ - string uid = "11b88c17-0a40-11f1-8b4b-d85ed3ae0e43" - float unitScale = 1 - token upAxis = "Y" - matrix4d xformOp:transform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 1, 0, 1) ) - uniform token[] xformOpOrder = ["xformOp:transform"] -} - From 8d4c6dc96e370a6360aecc4805660509ea6aafd8 Mon Sep 17 00:00:00 2001 From: Val Date: Wed, 6 May 2026 13:30:36 +0300 Subject: [PATCH 2/2] FIX: fixed default prim format in material_preview_sceneTemplate --- .../templates/material_preview_sceneTemplate.nausd_scene | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project_templates/empty/templates/material_preview_sceneTemplate.nausd_scene b/project_templates/empty/templates/material_preview_sceneTemplate.nausd_scene index bfe2b694..86ad3613 100644 --- a/project_templates/empty/templates/material_preview_sceneTemplate.nausd_scene +++ b/project_templates/empty/templates/material_preview_sceneTemplate.nausd_scene @@ -1,7 +1,7 @@ #nausd_scene 1.0 -{ +( defaultPrim = "PreviewMesh" -} +) def NauAssetMesh "PreviewMesh" ( displayName = "PreviewMesh"