Skip to content

Commit

Permalink
- Add a check to exclude ignored asseblies
Browse files Browse the repository at this point in the history
- Move "Apply Modified Properties" button upper
  • Loading branch information
KAW0 committed Aug 3, 2023
1 parent 1b07ef6 commit b9819f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Assets/Weaver/Editor/Inspectors/WeaverSettingsEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,17 @@ public override void OnInspectorGUI()
{
_hasModifiedProperties = true;
}
GUILayout.Label("Log", EditorStyles.boldLabel);
DrawLogs();

if (_hasModifiedProperties)
{
if (GUILayout.Button("Apply Modified Properties"))
{
ApplyModifiedProperties();
}
}
GUILayout.Label("Log", EditorStyles.boldLabel);
DrawLogs();


}

private void ApplyModifiedProperties()
Expand Down
2 changes: 2 additions & 0 deletions Assets/Weaver/Editor/Settings/WeaverSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ private void WeaveAssembly(string assemblyPath)
{
return;
}
if (!this.m_WeavedAssemblies.Any(x => Path.GetFileName(x.GetSystemPath()) == Path.GetFileName(assemblyPath)))
return;

string name = Path.GetFileNameWithoutExtension(assemblyPath);

Expand Down

0 comments on commit b9819f9

Please sign in to comment.