change the return type of submodel.passes to shared_ptr (#15267)

This commit is contained in:
江战
2023-06-01 14:05:03 +08:00
committed by GitHub
parent a8eb030f90
commit 175d8a4c7e
12 changed files with 34 additions and 31 deletions
@@ -22,11 +22,11 @@
THE SOFTWARE.
****************************************************************************/
#include "PlanarShadowQueue.h"
#include "Define.h"
#include "InstancedBuffer.h"
#include "PipelineSceneData.h"
#include "PipelineStateManager.h"
#include "PlanarShadowQueue.h"
#include "RenderInstancedQueue.h"
#include "RenderPipeline.h"
#include "core/geometry/AABB.h"
@@ -153,7 +153,7 @@ void PlanarShadowQueue::destroy() {
int PlanarShadowQueue::getShadowPassIndex(const scene::SubModel *subModel) const {
int i = 0;
for (const auto &pass : subModel->getPasses()) {
for (const auto &pass : *(subModel->getPasses())) {
if (pass->getPhase() == _phaseID) {
return i;
}