mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 14:12:51 +00:00
Merge pull request #96404 from larspet/path2d-selection
Fix Path2D editor not updating gizmos on selection in scene tree
This commit is contained in:
commit
55ab2f7174
@ -486,6 +486,8 @@ void Path2DEditor::edit(Node *p_path2d) {
|
|||||||
}
|
}
|
||||||
node = nullptr;
|
node = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
canvas_item_editor->update_viewport();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Path2DEditor::_bind_methods() {
|
void Path2DEditor::_bind_methods() {
|
||||||
@ -763,7 +765,6 @@ bool Path2DEditorPlugin::handles(Object *p_object) const {
|
|||||||
void Path2DEditorPlugin::make_visible(bool p_visible) {
|
void Path2DEditorPlugin::make_visible(bool p_visible) {
|
||||||
if (p_visible) {
|
if (p_visible) {
|
||||||
path2d_editor->show();
|
path2d_editor->show();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
path2d_editor->hide();
|
path2d_editor->hide();
|
||||||
path2d_editor->edit(nullptr);
|
path2d_editor->edit(nullptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user