Skip to content

Commit

Permalink
fix Extra Props missing when Show Modified Only
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMa0012 committed Dec 10, 2023
1 parent 91be5cd commit d363ae7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Editor/MetaDataHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,16 @@ public void BuildPerFrameData(Shader shader, Material material, MaterialProperty
hasModified = hasModified
});
}

// Extra Prop hasModified
for (int i = 0; i < props.Length; i++)
{
foreach (var extraPropName in perShaderData.propertyDatas[props[i].name].extraPropNames)
{
if (propertyDatas[extraPropName].hasModified)
propertyDatas[props[i].name].hasChildrenModified = true;
}
}
}

foreach (var prop in props)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.jasonma.lwgui",
"version": "1.14.1",
"version": "1.14.2",
"displayName": "LWGUI",
"description": "A Lightweight, Flexible, Powerful Shader GUI System for Unity.",
"keywords": [
Expand Down

0 comments on commit d363ae7

Please sign in to comment.