Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/JasonMa0012/LWGUI
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMa0012 committed Sep 26, 2022
2 parents 27c89dc + 52c10c5 commit 05ecaa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Editor/ShaderDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,13 @@ public override void DrawProp(Rect position, MaterialProperty prop, GUIContent l
{
EditorGUI.showMixedValue = prop.hasMixedValue;
var rect = position; //EditorGUILayout.GetControlRect();
var texLabel = string.Empty;
var texLabel = prop.displayName;

MaterialProperty extraProp = LWGUI.FindProp(_extraPropName, props, true);
if (extraProp != null && extraProp.type != MaterialProperty.PropType.Texture)
{
var i = EditorGUI.indentLevel;
texLabel = string.Empty;
Rect indentedRect, extraPropRect = new Rect(rect);
switch (extraProp.type)
{
Expand All @@ -484,7 +485,6 @@ public override void DrawProp(Rect position, MaterialProperty prop, GUIContent l
break;
case MaterialProperty.PropType.Range:
texLabel = prop.displayName;
label.text = string.Empty;
indentedRect = EditorGUI.IndentedRect(extraPropRect);
editor.SetDefaultGUIWidths();
EditorGUIUtility.fieldWidth += 1f;
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.2.2",
"version": "1.2.3",
"displayName": "LWGUI",
"description": "A Lightweight, Flexible, Powerful Shader GUI System for Unity.",
"keywords": [
Expand Down

0 comments on commit 05ecaa4

Please sign in to comment.