godot/scene
Rindbee d6c0959cb1 Improve PackedScene instantiate
Make `resource_local_to_scene` behave as described in the documentation. (If I understand correctly, the following **instance** refers to **the instance of the sub-scene**.)
2e24b76535/doc/classes/Resource.xml (L70-L72)

If the resources of the sub-scene are modified in the main scene, the modified resources will be recorded in the `tscn` file of the main scene. And the root node of the sub-scene will be set twice.
1. In the main scene, when encountering a sub-scene, the sub-scene will be initialized first;
2. Then use the resources in the main scene to reset the root node of the sub-scene.

This may make `resource_local_to_scene` not work as expected. The resources cannot be shared between the sub-scene root node and other ordinary nodes in the sub-scene.

Yes, if the resources have `resource_local_to_scene` enabled, this patch treats the modified resources of the sub-scene root node as resources in the sub-scene, not in the main scene. Although the modifications are recorded in the `tscn` file of the main scene.
2022-08-28 20:39:09 +08:00
..
2d Merge pull request #54646 from jmb462/fix-animatedsprite-animation-list 2022-08-26 08:22:51 +02:00
3d Merge pull request #63528 from bruvzg/fix_lbl3d_oversampling 2022-08-26 11:44:02 +02:00
animation Merge pull request #54456 from rafallus/fix/anim_state_machine_start 2022-08-26 07:47:11 +02:00
audio Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
debugger Swap arguments of ResourceSaver.save() 2022-07-29 19:53:09 +02:00
gui Revert SplitContainer minimum size splitting changes (#64676 and #64800) 2022-08-26 15:57:17 +02:00
main Merge pull request #64574 from Begah/fix_transient_window_wrap_mouse 2022-08-26 13:54:23 +02:00
resources Improve PackedScene instantiate 2022-08-28 20:39:09 +08:00
property_utils.cpp
property_utils.h
register_scene_types.cpp Merge pull request #64422 from bruvzg/make_fonts_unbearably_ugly_2.0 2022-08-26 11:59:07 +02:00
register_scene_types.h Code quality: Fix header guards consistency 2022-07-25 11:17:40 +02:00
scene_string_names.cpp
scene_string_names.h
SCsub [Net] Modularize multiplayer, expose MultiplayerAPI to extensions. 2022-07-26 09:31:12 +02:00