godot/scene/resources
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
..
default_theme Merge pull request #64422 from bruvzg/make_fonts_unbearably_ugly_2.0 2022-08-26 11:59:07 +02:00
animation_library.cpp
animation_library.h
animation.cpp Make Cubic to CubicInTime and reduce items in the track intrp type 2022-08-26 06:49:09 +09:00
animation.h Make Cubic to CubicInTime and reduce items in the track intrp type 2022-08-26 06:49:09 +09:00
audio_stream_wav.cpp
audio_stream_wav.h
bit_map.cpp Replace Array return types with TypedArray 2022-08-22 22:42:36 +02:00
bit_map.h Replace Array return types with TypedArray 2022-08-22 22:42:36 +02:00
bone_map.cpp Add simple auto mapping to BoneMapper 2022-08-23 16:43:33 +09:00
bone_map.h Add simple auto mapping to BoneMapper 2022-08-23 16:43:33 +09:00
box_shape_3d.cpp
box_shape_3d.h
camera_effects.cpp Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
camera_effects.h Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
canvas_item_material.cpp Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
canvas_item_material.h Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
capsule_shape_2d.cpp
capsule_shape_2d.h
capsule_shape_3d.cpp
capsule_shape_3d.h
circle_shape_2d.cpp
circle_shape_2d.h
concave_polygon_shape_2d.cpp
concave_polygon_shape_2d.h
concave_polygon_shape_3d.cpp
concave_polygon_shape_3d.h
convex_polygon_shape_2d.cpp
convex_polygon_shape_2d.h
convex_polygon_shape_3d.cpp
convex_polygon_shape_3d.h
curve.cpp Clarify the Line2D, Curve2D/3D documentation and fix parameter names 2022-08-15 21:38:14 +03:00
curve.h
cylinder_shape_3d.cpp
cylinder_shape_3d.h
environment.cpp Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
environment.h Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
fog_material.cpp
fog_material.h
font.cpp Merge pull request #64422 from bruvzg/make_fonts_unbearably_ugly_2.0 2022-08-26 11:59:07 +02:00
font.h Merge pull request #64422 from bruvzg/make_fonts_unbearably_ugly_2.0 2022-08-26 11:59:07 +02:00
gradient.cpp
gradient.h
height_map_shape_3d.cpp
height_map_shape_3d.h
immediate_mesh.cpp Replace Array return types with TypedArray 2 2022-08-23 23:21:32 +02:00
immediate_mesh.h Replace Array return types with TypedArray 2 2022-08-23 23:21:32 +02:00
importer_mesh.cpp
importer_mesh.h
label_settings.cpp
label_settings.h Change LabelSettings default values to match default theme. 2022-08-01 13:33:06 +03:00
material.cpp Merge pull request #58600 from Calinou/material-triplanar-sharpness-clamp 2022-08-22 22:21:33 +02:00
material.h Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
mesh_data_tool.cpp
mesh_data_tool.h
mesh_library.cpp
mesh_library.h Clean up mesh include code and comments 2022-08-20 13:24:40 -05:00
mesh.cpp Replace Array return types with TypedArray 2 2022-08-23 23:21:32 +02:00
mesh.h Replace Array return types with TypedArray 2 2022-08-23 23:21:32 +02:00
multimesh.cpp Add tests for empty/unnamed arguments to ClassDB, Variant, GDScript 2022-08-08 16:36:01 +03:00
multimesh.h
navigation_mesh.cpp Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
navigation_mesh.h Merge pull request #64339 from YuriSizov/core-multilevel-validate-property 2022-08-22 21:39:48 +02:00
packed_scene.cpp Improve PackedScene instantiate 2022-08-28 20:39:09 +08:00
packed_scene.h
particle_process_material.cpp Rename ParticlesMaterial to ParticleProcessMaterial 2022-08-26 02:53:08 +02:00
particle_process_material.h Rename ParticlesMaterial to ParticleProcessMaterial 2022-08-26 02:53:08 +02:00
physics_material.cpp
physics_material.h
polygon_path_finder.cpp Add tests for empty/unnamed arguments to ClassDB, Variant, GDScript 2022-08-08 16:36:01 +03:00
polygon_path_finder.h
primitive_meshes.cpp Merge pull request #64243 from bruvzg/multiline_textmesh 2022-08-26 11:45:25 +02:00
primitive_meshes.h Merge pull request #64243 from bruvzg/multiline_textmesh 2022-08-26 11:45:25 +02:00
rectangle_shape_2d.cpp
rectangle_shape_2d.h
resource_format_text.cpp
resource_format_text.h
SCsub
segment_shape_2d.cpp
segment_shape_2d.h
separation_ray_shape_2d.cpp
separation_ray_shape_2d.h
separation_ray_shape_3d.cpp
separation_ray_shape_3d.h
shader_include.cpp Implement coloring for disabled branches in the shader editor 2022-08-14 13:57:26 +03:00
shader_include.h
shader.cpp Implement coloring for disabled branches in the shader editor 2022-08-14 13:57:26 +03:00
shader.h Rename shader parameter uniform setter/getter methods for consistency 2022-08-04 23:17:06 +02:00
shape_2d.cpp Replace Array return types with TypedArray 2 2022-08-23 23:21:32 +02:00
shape_2d.h Replace Array return types with TypedArray 2 2022-08-23 23:21:32 +02:00
shape_3d.cpp
shape_3d.h
skeleton_modification_2d_ccdik.cpp
skeleton_modification_2d_ccdik.h
skeleton_modification_2d_fabrik.cpp
skeleton_modification_2d_fabrik.h
skeleton_modification_2d_jiggle.cpp
skeleton_modification_2d_jiggle.h
skeleton_modification_2d_lookat.cpp
skeleton_modification_2d_lookat.h
skeleton_modification_2d_physicalbones.cpp
skeleton_modification_2d_physicalbones.h
skeleton_modification_2d_stackholder.cpp
skeleton_modification_2d_stackholder.h
skeleton_modification_2d_twoboneik.cpp
skeleton_modification_2d_twoboneik.h
skeleton_modification_2d.cpp
skeleton_modification_2d.h
skeleton_modification_3d_ccdik.cpp
skeleton_modification_3d_ccdik.h Clean up include guards in 3D skeleton modification code 2022-08-19 19:18:47 -05:00
skeleton_modification_3d_fabrik.cpp
skeleton_modification_3d_fabrik.h Clean up include guards in 3D skeleton modification code 2022-08-19 19:18:47 -05:00
skeleton_modification_3d_jiggle.cpp
skeleton_modification_3d_jiggle.h Clean up include guards in 3D skeleton modification code 2022-08-19 19:18:47 -05:00
skeleton_modification_3d_lookat.cpp
skeleton_modification_3d_lookat.h Clean up include guards in 3D skeleton modification code 2022-08-19 19:18:47 -05:00
skeleton_modification_3d_stackholder.cpp
skeleton_modification_3d_stackholder.h Clean up include guards in 3D skeleton modification code 2022-08-19 19:18:47 -05:00
skeleton_modification_3d_twoboneik.cpp
skeleton_modification_3d_twoboneik.h Clean up include guards in 3D skeleton modification code 2022-08-19 19:18:47 -05:00
skeleton_modification_3d.cpp
skeleton_modification_3d.h
skeleton_modification_stack_2d.cpp
skeleton_modification_stack_2d.h
skeleton_modification_stack_3d.cpp
skeleton_modification_stack_3d.h
skeleton_profile.cpp Add simple auto mapping to BoneMapper 2022-08-23 16:43:33 +09:00
skeleton_profile.h Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
skin.cpp
skin.h
sky_material.cpp
sky_material.h
sky.cpp
sky.h
sphere_shape_3d.cpp
sphere_shape_3d.h
sprite_frames.cpp Add tests for empty/unnamed arguments to ClassDB, Variant, GDScript 2022-08-08 16:36:01 +03:00
sprite_frames.h
style_box.cpp Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
style_box.h Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
surface_tool.cpp
surface_tool.h
syntax_highlighter.cpp
syntax_highlighter.h
text_file.cpp
text_file.h
text_line.cpp
text_line.h
text_paragraph.cpp
text_paragraph.h
texture.cpp Merge pull request #64339 from YuriSizov/core-multilevel-validate-property 2022-08-22 21:39:48 +02:00
texture.h Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
theme.cpp
theme.h
tile_set.cpp Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
tile_set.h Make _validate_property a multilevel method 2022-08-22 18:35:11 +03:00
video_stream.h
visual_shader_nodes.cpp Merge pull request #63999 from QbieShay/qbie/vs-qol 2022-08-18 14:47:23 -06:00
visual_shader_nodes.h Merge pull request #62454 from Geometror/reflect-refract-vec2-vec4 2022-08-07 19:16:05 +02:00
visual_shader_particle_nodes.cpp
visual_shader_particle_nodes.h
visual_shader_sdf_nodes.cpp
visual_shader_sdf_nodes.h
visual_shader.cpp Allow using integer varyings with flat interpolation modifier 2022-08-25 13:21:02 +03:00
visual_shader.h Allow using integer varyings with flat interpolation modifier 2022-08-25 13:21:02 +03:00
world_2d.cpp
world_2d.h
world_3d.cpp
world_3d.h
world_boundary_shape_2d.cpp
world_boundary_shape_2d.h
world_boundary_shape_3d.cpp
world_boundary_shape_3d.h