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:
parent
a85df7cc73
commit
cb9b4cff90
25 changed files with 172 additions and 159 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue