Skip to content

Commit

Permalink
Merge pull request #61441 from clayjohn/rd-dependency
Browse files Browse the repository at this point in the history
Remove mesh and particles RD dependencies from canvas rendering server
  • Loading branch information
akien-mga authored May 27, 2022
2 parents 92b337a + 7b71545 commit 8a21f72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion servers/rendering/renderer_canvas_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const Rect2 &RendererCanvasRender::Item::get_rect() const {
case Item::Command::TYPE_PARTICLES: {
const Item::CommandParticles *particles_cmd = static_cast<const Item::CommandParticles *>(c);
if (particles_cmd->particles.is_valid()) {
AABB aabb = RendererRD::ParticlesStorage::get_singleton()->particles_get_aabb(particles_cmd->particles);
AABB aabb = RSG::particles_storage->particles_get_aabb(particles_cmd->particles);
r = Rect2(aabb.position.x, aabb.position.y, aabb.size.x, aabb.size.y);
}

Expand Down
2 changes: 0 additions & 2 deletions servers/rendering/renderer_canvas_render.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#ifndef RENDERINGSERVERCANVASRENDER_H
#define RENDERINGSERVERCANVASRENDER_H

#include "servers/rendering/renderer_rd/storage_rd/mesh_storage.h"
#include "servers/rendering/renderer_rd/storage_rd/particles_storage.h"
#include "servers/rendering/renderer_storage.h"

class RendererCanvasRender {
Expand Down

0 comments on commit 8a21f72

Please sign in to comment.