From bd65cfa876df82f67842ce447ba6c3d28893e7ca Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Thu, 25 Sep 2025 13:45:49 +0200 Subject: [PATCH] Revert "Replace many uses of `is_class` with `derives_from`." This reverts commit 78b743cf4a67973d477378286c47cba66c66a580. --- core/io/resource_format_binary.cpp | 2 +- core/io/resource_loader.cpp | 2 +- core/io/resource_saver.cpp | 2 +- core/object/object.cpp | 2 +- drivers/png/resource_saver_png.cpp | 2 +- .../animation_player_editor_plugin.cpp | 10 ++++---- .../animation_state_machine_editor.cpp | 2 +- editor/animation/animation_track_editor.cpp | 6 ++--- .../animation_track_editor_plugins.cpp | 6 ++--- .../animation_tree_editor_plugin.cpp | 2 +- editor/docks/inspector_dock.cpp | 8 +++---- editor/docks/scene_tree_dock.cpp | 2 +- editor/editor_node.cpp | 24 +++++++++---------- editor/scene/2d/camera_2d_editor_plugin.cpp | 2 +- editor/scene/2d/path_2d_editor_plugin.cpp | 2 +- .../collision_shape_2d_editor_plugin.cpp | 2 +- editor/scene/2d/skeleton_2d_editor_plugin.cpp | 2 +- editor/scene/2d/sprite_2d_editor_plugin.cpp | 2 +- editor/scene/3d/camera_3d_editor_plugin.cpp | 2 +- ..._particles_collision_sdf_editor_plugin.cpp | 2 +- editor/scene/3d/lightmap_gi_editor_plugin.cpp | 2 +- .../scene/3d/mesh_library_editor_plugin.cpp | 2 +- editor/scene/3d/multimesh_editor_plugin.cpp | 2 +- editor/scene/3d/node_3d_editor_plugin.cpp | 4 ++-- .../3d/occluder_instance_3d_editor_plugin.cpp | 2 +- .../scene/3d/particles_3d_editor_plugin.cpp | 2 +- editor/scene/3d/path_3d_editor_plugin.cpp | 2 +- editor/scene/3d/root_motion_editor_plugin.cpp | 2 +- editor/scene/3d/skeleton_3d_editor_plugin.cpp | 2 +- .../scene/3d/skeleton_ik_3d_editor_plugin.cpp | 2 +- editor/scene/3d/voxel_gi_editor_plugin.cpp | 2 +- editor/scene/canvas_item_editor_plugin.cpp | 2 +- editor/scene/gui/font_config_plugin.cpp | 2 +- .../resource_preloader_editor_plugin.cpp | 2 +- editor/scene/scene_tree_editor.cpp | 6 ++--- editor/script/script_editor_plugin.cpp | 2 +- editor/shader/visual_shader_editor_plugin.cpp | 10 ++++---- .../gridmap/editor/grid_map_editor_plugin.cpp | 2 +- .../editor/multiplayer_editor_plugin.cpp | 2 +- modules/webp/resource_saver_webp.cpp | 2 +- scene/2d/gpu_particles_2d.cpp | 4 ++-- scene/debugger/scene_debugger.cpp | 18 +++++++------- scene/resources/visual_shader.cpp | 4 ++-- 43 files changed, 82 insertions(+), 82 deletions(-) diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp index e03b75c6731..7ce92989f7f 100644 --- a/core/io/resource_format_binary.cpp +++ b/core/io/resource_format_binary.cpp @@ -2220,7 +2220,7 @@ Error ResourceFormatSaverBinaryInstance::save(const String &p_path, const Refderives_from()) { + if (!p_resource->is_class("PackedScene")) { Ref