Skip to content

Commit

Permalink
Fix unable to save LWGUI Gradient changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMa0012 committed Jan 15, 2025
1 parent 8bed3ae commit 51671e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,14 @@ public static void RepaintWindow()
public static void RegisterSerializedObjectUndo(Object targetObject)
{
Undo.RegisterCompleteObjectUndo(targetObject, "Lwgui Gradient Editor");
EditorUtility.SetDirty(targetObject);
}

public static void RegisterRampMapUndo(Object texture, Object assetImporter)
{
Undo.RecordObjects(new Object[]{ texture, assetImporter }, "Set Lwgui Gradient To Texture");
EditorUtility.SetDirty(texture);
EditorUtility.SetDirty(assetImporter);
}

private void OnGUI()
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.21.1",
"version": "1.21.2",
"displayName": "LWGUI",
"description": "A Lightweight, Flexible, Powerful Shader GUI System for Unity.",
"keywords": [
Expand Down

0 comments on commit 51671e1

Please sign in to comment.