Skip to content

Commit 98e31d1

Browse files
author
David
committed
Added debug prints under define EXTRA_UE_LOG control.
1 parent 4a7a3f4 commit 98e31d1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Source/UnrealEnginePython/Private/Blueprint/UEPyEdGraph.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ PyObject *py_ue_graph_add_node(ue_PyUObject * self, PyObject * args)
316316
{
317317
return PyErr_Format(PyExc_Exception, "argument is not a child of UEdGraphNode");
318318
}
319+
EXTRA_UE_LOG(LogPython, Warning, TEXT("add_node: Casting to class %s"), *u_class->GetName());
319320
node = NewObject<UEdGraphNode>(graph, u_class);
320321
node->PostLoad();
321322
}
@@ -328,6 +329,7 @@ PyObject *py_ue_graph_add_node(ue_PyUObject * self, PyObject * args)
328329

329330
node->Rename(*node->GetName(), graph);
330331
}
332+
EXTRA_UE_LOG(LogPython, Warning, TEXT("add_node: renaming node"));
331333
}
332334

333335
if (!node)
@@ -337,8 +339,10 @@ PyObject *py_ue_graph_add_node(ue_PyUObject * self, PyObject * args)
337339
node->CreateNewGuid();
338340
node->PostPlacedNewNode();
339341
node->SetFlags(RF_Transactional);
342+
EXTRA_UE_LOG(LogPython, Warning, TEXT("add_node: allocate pins current pins num %d"), node->Pins.Num());
340343
if (node->Pins.Num() == 0)
341344
{
345+
EXTRA_UE_LOG(LogPython, Warning, TEXT("add_node: allocating pins"));
342346
node->AllocateDefaultPins();
343347
}
344348
node->NodePosX = x;
@@ -527,6 +531,8 @@ PyObject *py_ue_graph_add_node_dynamic_cast(ue_PyUObject * self, PyObject * args
527531
if(!u_class)
528532
return PyErr_Format(PyExc_Exception, "argument is not a UClass");
529533

534+
EXTRA_UE_LOG(LogPython, Warning, TEXT("add_node_dynamic_cast: Casting to class %s %p"), *u_class->GetName(), (void *)u_class);
535+
530536
UK2Node_DynamicCast *node = NewObject<UK2Node_DynamicCast>(graph);
531537
node->TargetType = u_class;
532538
#if ENGINE_MINOR_VERSION > 15
@@ -555,6 +561,8 @@ PyObject *py_ue_graph_add_node_dynamic_cast(ue_PyUObject * self, PyObject * args
555561
FBlueprintEditorUtils::MarkBlueprintAsStructurallyModified(bp);
556562
}
557563

564+
EXTRA_UE_LOG(LogPython, Warning, TEXT("add_node_dynamic_cast: targettype is %p"), (void *)(node->TargetType));
565+
558566
Py_RETURN_UOBJECT(node);
559567
}
560568

0 commit comments

Comments
 (0)