Skip to content

Commit 462625f

Browse files
authored
Merge pull request #14 from VRLabs/1.0-updates
Fized bug on the generator
2 parents 825df86 + 28e0870 commit 462625f

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/create-release.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,23 @@ jobs:
2525
mkdir -p "Main"
2626
mkdir -p "Examples"
2727
cp -r "Assets" "Main"
28-
cp -r "Assets" "Examples"
29-
rm -r "Main/Assets/VRLabs/ModularShaderSystem/Examples"
30-
rm -r "Main/Assets/VRLabs/ModularShaderSystem/Examples.meta"
31-
find "Examples/Assets/VRLabs/ModularShaderSystem" -mindepth 1 ! -regex '^Examples/Assets/VRLabs/ModularShaderSystem/Examples.*' -delete
28+
mkdir -p "Examples/Assets/VRLabs/ModularShaderSystem"
29+
echo -e "fileFormatVersion: 2\nguid: 652a1ba5b00554143bc9a76307dbc4e8\nfolderAsset: yes\nDefaultImporter:\n externalObjects: {}\n userData: \n assetBundleName: \n assetBundleVariant: " > "Examples/Assets/VRLabs.meta"
30+
echo -e "fileFormatVersion: 2\nguid: 433bedcd0ded4bcf993b0088e99f493c\nfolderAsset: yes\nDefaultImporter:\n externalObjects: {}\n userData: \n assetBundleName: \n assetBundleVariant: " > "Examples/Assets/VRLabs/ModularShaderSystem.meta"
31+
mv "Main/Assets/VRLabs/ModularShaderSystem/Examples" "Examples/Assets/VRLabs/ModularShaderSystem"
32+
mv "Main/Assets/VRLabs/ModularShaderSystem/Examples.meta" "Examples/Assets/VRLabs/ModularShaderSystem"
3233
- name: Create UnityPackage
3334
env:
3435
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
35-
uses: FrostBanditTeam/extract-unity-package-action@1
36+
uses: VRLabs/extract-unity-package-action@v1.2.1
3637
with:
3738
outputPackagePath: 'Modular.Shader.System.${{ env.SOURCE_TAG }}.unitypackage'
3839
unityProjectPath: 'Main'
3940

4041
- name: Create Examples UnityPackage
4142
env:
4243
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
43-
uses: FrostBanditTeam/extract-unity-package-action@1
44+
uses: VRLabs/extract-unity-package-action@v1.2.1
4445
with:
4546
outputPackagePath: 'Modular.Shader.System.Examples.${{ env.SOURCE_TAG }}.unitypackage'
4647
unityProjectPath: 'Examples'

Editor/ShaderGenerator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ private static void AddFreshShaderToList(this Dictionary<TemplateAsset, Template
368368
switch (genericAsset)
369369
{
370370
case TemplateCollectionAsset collection:
371-
template = collection.Templates.FirstOrDefault(x => assetName.Equals(asset.name));
371+
template = collection.Templates.FirstOrDefault(x => x.name.Equals(assetName));
372372
break;
373373
case TemplateAsset t:
374374
template = t;

0 commit comments

Comments
 (0)