diff options
| author | Juan Linietsky | 2017-01-10 01:04:31 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-10 01:07:03 -0300 |
| commit | a503f8aadcb8cbc85bde589fb25ea06e599b367b (patch) | |
| tree | 070ebbf0dd6af2d43c5519f5e32045b3512f0e9e /tools/editor/editor_data.cpp | |
| parent | 68c008ca8d87a1f72fcf17467ee43714954e9ce4 (diff) | |
| download | godot-a503f8aadcb8cbc85bde589fb25ea06e599b367b.tar.gz godot-a503f8aadcb8cbc85bde589fb25ea06e599b367b.tar.zst godot-a503f8aadcb8cbc85bde589fb25ea06e599b367b.zip | |
Groundbreaking!! Godot resources can now be flagged to be local to the scene being edited!
This means that each time this scene is instanced, the resource will be unique!
As such, thanks to this, the following features were implemented:
-ButtonGroup is no longer a control, it's now a resource local to the scene
-ViewportTexture can be created from the editor and set to any object, making ViewportSprite and other kind of nodes obsolete!
Diffstat (limited to 'tools/editor/editor_data.cpp')
| -rw-r--r-- | tools/editor/editor_data.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/editor_data.cpp b/tools/editor/editor_data.cpp index 11ba30f4f..f27fe79a8 100644 --- a/tools/editor/editor_data.cpp +++ b/tools/editor/editor_data.cpp @@ -584,7 +584,7 @@ bool EditorData::check_and_update_scene(int p_idx) { Error err = pscene->pack(edited_scene[p_idx].root); ERR_FAIL_COND_V(err!=OK,false); ep.step(TTR("Updating scene.."),1); - Node *new_scene = pscene->instance(true); + Node *new_scene = pscene->instance(PackedScene::GEN_EDIT_STATE_MAIN); ERR_FAIL_COND_V(!new_scene,false); //transfer selection |
