Decouple MeshStorage from RenderingServer

By moving RS::SurfaceData and RS::MeshInfo to RenderingServerTypes.

This notably allows removing RS dependency from `mesh.h`.
This commit is contained in:
Rémi Verschelde 2026-02-18 17:44:35 +01:00
parent a85df7cc73
commit cb9b4cff90
No known key found for this signature in database
GPG key ID: C3336907360768E1
25 changed files with 172 additions and 159 deletions

View file

@ -35,16 +35,16 @@
#include "core/object/object.h"
#include "scene/gui/view_panner.h"
#ifndef _3D_DISABLED
#include "scene/resources/mesh.h"
#endif // _3D_DISABLED
class InputEvent;
class InputEventMouseMotion;
class InputEventWithModifiers;
class Node;
class PopupMenu;
#ifndef _3D_DISABLED
class ArrayMesh;
#endif
class RuntimeNodeSelect : public Object {
GDCLASS(RuntimeNodeSelect, Object);
@ -171,14 +171,7 @@ private:
Transform3D transform;
AABB bounds;
~SelectionBox3D() {
if (instance.is_valid()) {
RS::get_singleton()->free_rid(instance);
RS::get_singleton()->free_rid(instance_ofs);
RS::get_singleton()->free_rid(instance_xray);
RS::get_singleton()->free_rid(instance_xray_ofs);
}
}
~SelectionBox3D();
};
HashMap<ObjectID, Ref<SelectionBox3D>> selected_3d_nodes;