Fixing bugs

This commit is contained in:
bd_ 2022-10-22 13:04:25 -07:00
parent 13a5bb5d50
commit 0209a40749
4 changed files with 25 additions and 26 deletions

View File

@ -1,7 +1,7 @@
{ {
"dependencies": { "dependencies": {
"com.unity.collab-proxy": "1.10.2", "com.unity.collab-proxy": "1.10.2",
"com.unity.ide.rider": "3.0.15", "com.unity.ide.rider": "3.0.16",
"com.unity.ide.visualstudio": "2.0.11", "com.unity.ide.visualstudio": "2.0.11",
"com.unity.ide.vscode": "1.2.4", "com.unity.ide.vscode": "1.2.4",
"com.unity.test-framework": "1.1.29", "com.unity.test-framework": "1.1.29",

View File

@ -9,8 +9,8 @@ namespace net.fushizen.modular_avatar.core.editor
{ {
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{ {
if (!CustomGUI(position, property, label)) if (CustomGUI(position, property, label)) return;
{
var xButtonSize = EditorStyles.miniButtonRight.CalcSize(new GUIContent("x")); var xButtonSize = EditorStyles.miniButtonRight.CalcSize(new GUIContent("x"));
var xButtonRect = new Rect(position.xMax - xButtonSize.x, position.y, xButtonSize.x, position.height); var xButtonRect = new Rect(position.xMax - xButtonSize.x, position.y, xButtonSize.x, position.height);
position = new Rect(position.x, position.y, position.width - xButtonSize.x, position.height); position = new Rect(position.x, position.y, position.width - xButtonSize.x, position.height);
@ -25,7 +25,6 @@ namespace net.fushizen.modular_avatar.core.editor
string.IsNullOrEmpty(property.stringValue) ? "(null)" : property.stringValue); string.IsNullOrEmpty(property.stringValue) ? "(null)" : property.stringValue);
} }
} }
}
private bool CustomGUI(Rect position, SerializedProperty property, GUIContent label) private bool CustomGUI(Rect position, SerializedProperty property, GUIContent label)
{ {

View File

@ -54,7 +54,6 @@ namespace net.fushizen.modular_avatar.core.editor
{ {
var virtObj = new SerializedObject(objRefs); var virtObj = new SerializedObject(objRefs);
var virtProp = virtObj.FindProperty(nameof(TempObjRef.target)); var virtProp = virtObj.FindProperty(nameof(TempObjRef.target));
}
EditorGUI.BeginChangeCheck(); EditorGUI.BeginChangeCheck();
@ -69,6 +68,7 @@ namespace net.fushizen.modular_avatar.core.editor
t.target = ((TempObjRef) objRefs[i]).target; t.target = ((TempObjRef) objRefs[i]).target;
} }
} }
}
foldout = EditorGUILayout.Foldout(foldout, G("boneproxy.foldout.advanced")); foldout = EditorGUILayout.Foldout(foldout, G("boneproxy.foldout.advanced"));
if (foldout) if (foldout)

View File

@ -24,7 +24,7 @@
"url": "https://packages.unity.com" "url": "https://packages.unity.com"
}, },
"com.unity.ide.rider": { "com.unity.ide.rider": {
"version": "3.0.15", "version": "3.0.16",
"depth": 0, "depth": 0,
"source": "registry", "source": "registry",
"dependencies": { "dependencies": {