add 2d paths and joints to collision/navigation debug, fixes #2439
This commit is contained in:
parent
408a67193e
commit
b8f18cd73c
2 changed files with 32 additions and 13 deletions
|
|
@ -31,9 +31,13 @@
|
|||
|
||||
void Path2D::_notification(int p_what) {
|
||||
|
||||
if (p_what==NOTIFICATION_DRAW && curve.is_valid() && is_inside_tree() && get_tree()->is_editor_hint()) {
|
||||
if (p_what==NOTIFICATION_DRAW && curve.is_valid()) {
|
||||
//draw the curve!!
|
||||
|
||||
if (!get_tree()->is_editor_hint() && !get_tree()->is_debugging_navigation_hint()) {
|
||||
return;
|
||||
}
|
||||
|
||||
for(int i=0;i<curve->get_point_count();i++) {
|
||||
|
||||
Vector2 prev_p=curve->get_point_pos(i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue