Skip to content

Commit d4f88f3

Browse files
committed
Revert r472026 until I can figure out why it breaks older versions of Unity...
1 parent 4a7b7ef commit d4f88f3

File tree

86 files changed

+12826
-12972
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+12826
-12972
lines changed

Plugins/HoudiniEngineUnity/Editor/HEU_EditorApp.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
namespace HoudiniEngineUnity
3333
{
3434
/// <summary>
35-
/// Manages Editor callbacks and events.
35+
/// Manages Editor callbacks and events.
3636
/// </summary>
3737
[InitializeOnLoad]
3838
public static class HEU_EditorApp
3939
{
4040
/// <summary>
41-
/// Executed after script (re)load. Sets up plugin callbacks.
41+
/// Executed after script (re)load. Sets up plugin callbacks.
4242
/// </summary>
4343
static HEU_EditorApp()
4444
{
@@ -51,7 +51,7 @@ static HEU_EditorApp()
5151
#if UNITY_2019_1_OR_NEWER
5252
SceneView.duringSceneGui += OnSceneGUIDelegate;
5353
#else
54-
SceneView.onSceneGUIDelegate += OnSceneGUIDelegate;
54+
SceneView.onSceneGUIDelegate += OnSceneGUIDelegate;
5555
#endif
5656
}
5757

Plugins/HoudiniEngineUnity/Editor/HEU_EditorStrings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
namespace HoudiniEngineUnity
3232
{
3333
/// <summary>
34-
/// Commonly-used strings all in one place.
34+
/// Commonly-used strings all in one place.
3535
/// </summary>
3636
public static class HEU_EditorStrings
3737
{

Plugins/HoudiniEngineUnity/Editor/VisualScripting/HEU_UnitButtonInspector.cs

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88

99
namespace HoudiniEngineUnity
1010
{
11-
[Inspector(typeof(HEU_UnitButton))]
11+
[Inspector(typeof(HEU_UnitButton) )]
1212
public class HEU_UnitButtonInspector : Inspector
1313
{
14-
public HEU_UnitButtonInspector(Metadata metadata) : base(metadata)
15-
{
16-
}
14+
public HEU_UnitButtonInspector(Metadata metadata) : base(metadata) { }
1715

1816
protected override float GetHeight(float width, GUIContent label)
1917
{
@@ -23,29 +21,29 @@ protected override float GetHeight(float width, GUIContent label)
2321
protected override void OnGUI(Rect position, GUIContent label)
2422
{
2523
var attribute = metadata.GetAttribute<HEU_UnitButtonAttribute>(true);
26-
if (attribute != null)
27-
{
28-
string functionName = attribute.functionName;
29-
string btnLabel = attribute.buttonLabel;
30-
int btnWidth = attribute.buttonWidth;
24+
if (attribute != null)
25+
{
26+
string functionName = attribute.functionName;
27+
string btnLabel = attribute.buttonLabel;
28+
int btnWidth = attribute.buttonWidth;
3129

32-
var buttonPosition = new Rect(
33-
position.x,
34-
position.y,
35-
position.width + btnWidth,
36-
16
37-
);
30+
var buttonPosition = new Rect(
31+
position.x,
32+
position.y,
33+
position.width + btnWidth,
34+
16
35+
);
3836

39-
if (GUI.Button(buttonPosition, btnLabel, new GUIStyle(UnityEditor.EditorStyles.miniButton)))
40-
{
41-
if (attribute != null)
42-
{
43-
object typeObject = metadata.parent.value;
44-
GraphReference reference = GraphWindow.activeReference;
45-
typeObject.GetType().GetMethod(functionName).Invoke(typeObject, new object[1] { reference });
46-
}
47-
}
48-
}
37+
if (GUI.Button(buttonPosition, btnLabel, new GUIStyle(UnityEditor.EditorStyles.miniButton)))
38+
{
39+
if (attribute != null)
40+
{
41+
object typeObject = metadata.parent.value;
42+
GraphReference reference = GraphWindow.activeReference;
43+
typeObject.GetType().GetMethod(functionName).Invoke(typeObject, new object[1] { reference });
44+
}
45+
}
46+
}
4947
}
5048
}
5149
}

0 commit comments

Comments
 (0)