1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

423 Commits

Author SHA1 Message Date
Icarus
7a7c0ffdd0 !I Siccity/master -> yika-aixi/Cabin_Icarus
# Conflicts:
#	.gitignore
#	Scripts/Editor/NodeEditor.cs
#	Scripts/Editor/NodeEditorAction.cs
#	Scripts/Editor/NodeEditorGUILayout.cs
#	Scripts/Editor/NodeGraphEditor.cs
#	Scripts/NodeDataCache.cs
2020-05-28 19:04:33 +08:00
Christiaan Bloemendaal
6c85abf9bc
Fix handles color not being reset to original color (#266)
Co-authored-by: Christiaan Bloemendaal <christiaan@codeglue.com>
2020-05-27 14:20:37 +02:00
chrisfairc
a8daac60b0
Add a dragthreshold to better distunguish right clicks and right drags (#230)
* add a drag threshold so right clicks are better distinguished from right drags especially on large screens

* ignore mac files too

* dont use less than 1 as a drag threshold

Co-authored-by: Chris Fairclough <chris@zulleon.com>
2020-05-27 08:20:20 +02:00
fdtdev
8046e6e0bf
[FIX] fix a problem when a complex class with optional port drawing is used with NodeEditorGUILayout.DynamicPortList. By having an item that wasn't drawing the port, the method was throwing a KeyNotFoundException when reordering. (#262)
The fix detects if there isn't a port when swapping rects.
2020-05-09 13:21:35 +02:00
Romain Théry
4c6d22a152
Improve rename popup (#256) 2020-05-07 10:21:39 +02:00
Dan Erhardt
a1cf78d3fb
Fix for AutoConnect method. (#255)
Prevents incompatible connections between node ports when creating a new node on connection drag.
2020-04-26 17:44:46 +02:00
Thor Brigsted
d9d90f0f7b
Add [RequireNode] attribute to graphs (#254) 2020-04-24 15:57:50 +02:00
Romain Théry
c298b5ee53
Add virtual OnWindowFocus and OnWindowFocusLost in NodeGraphEditor(#253) 2020-04-23 15:08:43 +02:00
Romain Théry
ff2c1e8158
Mark CopyNode as virtual (#252) 2020-04-23 11:27:02 +02:00
Thor Brigsted
8965d365e6 Add [DisallowMultipleNodes] for limiting how many nodes of a certain type can exist on any graph 2020-04-21 15:31:07 +02:00
Dan Erhardt
bbdbee90a1
Fix to prevent division by 0 (#251) 2020-04-20 16:56:33 +02:00
Dan Erhardt
e704b97c77
A fix for an ArgumentException error. (#250)
This is the fix proposed by nostravaganza on discord.
It works 100%. Could not reproduce the error again.
2020-04-20 16:21:19 +02:00
Thor Brigsted
049a62465c Made nodeEditorWindow.selectedReroutes public 2020-04-19 20:41:12 +02:00
Simon Rodriguez
a61bb3f87e
Implemented OrderBy in Add Node Menu (#247) 2020-04-14 08:11:21 +02:00
Simon Rodriguez
76cf825090 Suggestion! A new way of drawing lines very similar to Unitys upcoming Shader Node Editor. 2020-04-13 19:35:52 +02:00
Thor Brigsted
e2c7934f1e Limit the OnDropObjects warning to only show when a node graph editor is present 2020-04-04 14:01:05 +02:00
Thor Brigsted
f899e48ee0 Added undo support and default graph name to SceneGraph 2020-04-03 15:01:44 +02:00
Thor Brigsted
f3b211ed83 Fixed error on adding nodes in scene graphs 2020-04-03 11:26:12 +02:00
Thor Brigsted
6a69cdaf9c New component: SceneGraph, lets you create a graph inside the scene which can reference scene objects. 2020-04-03 11:09:57 +02:00
Jeff Campbell
9add4e11b2
Added fix for rename bug with v2 AssetDatabase (#239)
* Added fix for NodeGraph rename bug with v2 AssetDatabase where renaming a graph asset can sometimes result in it being swapped as the main asset with one of the node sub assets.
2020-03-08 12:56:57 +01:00
Jeff Campbell
11b7f4ac44 Added NRE check for ValidateGraphEditor
* Added NRE check to prevent exception when NodeGraphEditor.GetEditor returns null and an existing non-null graph editor is already present.
2020-03-07 21:30:46 +01:00
Thor Brigsted
1ef3896893 Potential fix for the main asset/rename problem in newer versions of Unity 2020-02-25 09:13:14 +01:00
Lumos
7e93ffe4b7 Fix for the dynamic port "serialisation desync" problem. (#223)
* Exclude strings from array types manually to prevent them from being treated as char arrays.
2020-01-21 08:01:57 +01:00
Icarus
daf7fb9f9f !B(NodeEditorWindow) multiple NodeEditorWindow,Target error 2020-01-06 22:34:54 +08:00
Lumos
b526092341 Added a virtual OnRename function to base nodes, triggered when a node gets renamed. (#225) 2020-01-02 19:48:36 +01:00
Gahwon Lee
e98bd85531 better odin support in xNode editors 2019-12-25 01:20:36 +01:00
Thor Brigsted
a47b4568db
Merge pull request #222 from LumosX/occupied-autoconnection-fix
Fix autoconnection menu opening when a link cannot be established
2019-12-24 03:59:11 +01:00
Icarus
33a516b6e2 !TX(Code format) var to concrete Type 2019-12-24 00:23:17 +08:00
Icarus
d35fba4851 Merge remote-tracking branch 'remotes/Siccity/master' into Cabin_Icarus
# Conflicts:
#	Scripts/Editor/NodeEditorWindow.cs
2019-12-23 23:34:19 +08:00
Icarus
6ecef29f07 !TX(Code format) 2019-12-23 23:30:04 +08:00
Icarus
5d2259608e !TX(Code format) 2019-12-23 23:29:28 +08:00
Thor Brigsted
5597e565d1 Added focus selected node 2019-12-23 13:56:49 +01:00
Thor Brigsted
1d43244a8f Simplified implementation 2019-12-23 13:52:53 +01:00
Lumos
23e369d38f Fix auto-connection menu opening on invalid connections where a target node is present 2019-12-22 15:43:25 +01:00
Lumos
ede650c369 Added a big "edit graph" button to Node and Graph inspectors.
I was very confused that this isn't a thing already.
2019-12-21 20:33:34 +01:00
Icarus
f7251ee02a Merge remote-tracking branch 'remotes/Siccity/master' into Cabin_Icarus 2019-12-21 21:05:49 +08:00
Icarus
2fb21d0f89 !TX Coding conventions 2019-12-21 21:01:04 +08:00
Icarus
10636cd243 !T(Port) remove baseType 2019-12-21 20:47:59 +08:00
Icarus
7624d4ad1f !OA(Menu Popup Window) Move to MenuPopup folder 2019-12-21 20:47:18 +08:00
Andrei
5005b5e4f9 Made NodeGraphiEditor's OnGui method virtual and protected, so it can be extended by adding additional content/widgets to be drawn. (#214) 2019-12-15 11:52:22 +01:00
Icarus
c0b80b59da !B(Create Node) pos error 2019-12-09 15:51:47 +08:00
Icarus
7e4e4b6f8e !TX 2019-12-09 14:06:55 +08:00
Icarus
f77183cca3 Sync Siccity https://github.com/Siccity/xNode
# Conflicts:
#	Scripts/Editor/NodeEditor.cs
#	Scripts/Editor/NodeEditorAction.cs
#	Scripts/Editor/NodeEditorPreferences.cs
2019-12-09 14:02:28 +08:00
Icarus
210cb33105 !B(Node Editor Window) multi open NullPointerException 2019-12-09 13:42:02 +08:00
Icarus
cf59838dd0 !O 2019-12-09 11:11:47 +08:00
Icarus
cf6cddeae5 !BO(Menu Tree View) 可能会出现多个相同菜单,删除了OnFocus 2019-12-09 11:11:31 +08:00
Icarus
a749defa24 !TX 2019-12-08 22:15:34 +08:00
Icarus
eb7c9098e9 !R(Dynamic Port List) 顺序改变,这次重写应该再也不会出现未知的错误=-= 2019-12-08 21:04:50 +08:00
Icarus
fe313be5ee !B NullReferenceException 2019-12-04 10:33:49 +08:00
Icarus
15ef25888c !TX 2019-12-03 22:30:35 +08:00