mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +08:00
Limit the OnDropObjects warning to only show when a node graph editor is present
This commit is contained in:
parent
f899e48ee0
commit
e2c7934f1e
@ -133,7 +133,7 @@ namespace XNodeEditor {
|
|||||||
|
|
||||||
/// <summary> Deal with objects dropped into the graph through DragAndDrop </summary>
|
/// <summary> Deal with objects dropped into the graph through DragAndDrop </summary>
|
||||||
public virtual void OnDropObjects(UnityEngine.Object[] objects) {
|
public virtual void OnDropObjects(UnityEngine.Object[] objects) {
|
||||||
Debug.Log("No OnDropObjects override defined for " + GetType());
|
if (GetType() != typeof(NodeGraphEditor)) Debug.Log("No OnDropObjects override defined for " + GetType());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary> Create a node and save it in the graph asset </summary>
|
/// <summary> Create a node and save it in the graph asset </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user