-Fix global transform cache not being cleared in 2D nodes, fixes many editor bugs, closes #2115
This commit is contained in:
parent
1597082c85
commit
939c5f5c9e
3 changed files with 1 additions and 3 deletions
|
@ -548,6 +548,7 @@ void CanvasItem::_notification(int p_what) {
|
||||||
get_parent()->cast_to<CanvasItem>()->children_items.erase(C);
|
get_parent()->cast_to<CanvasItem>()->children_items.erase(C);
|
||||||
C=NULL;
|
C=NULL;
|
||||||
}
|
}
|
||||||
|
global_invalid=true;
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_DRAW: {
|
case NOTIFICATION_DRAW: {
|
||||||
|
|
||||||
|
|
|
@ -755,7 +755,6 @@ void Polygon2DEditor::edit(Node *p_collision_polygon) {
|
||||||
canvas_item_editor=CanvasItemEditor::get_singleton();
|
canvas_item_editor=CanvasItemEditor::get_singleton();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (p_collision_polygon) {
|
if (p_collision_polygon) {
|
||||||
|
|
||||||
node=p_collision_polygon->cast_to<Polygon2D>();
|
node=p_collision_polygon->cast_to<Polygon2D>();
|
||||||
|
|
|
@ -3108,8 +3108,6 @@ void PropertyEditor::update_tree() {
|
||||||
item->add_button(1,get_icon("Reload","EditorIcons"),3);
|
item->add_button(1,get_icon("Reload","EditorIcons"),3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
print_line("no default value!");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue