<commit_before>#include "PreviewCanvas.h"

#include <ee/SpriteRenderer.h>
#include <ee/Sprite.h>

namespace ecomplex
{

PreviewCanvas::PreviewCanvas(wxWindow* stage_wnd, ee::EditPanelImpl* stage, 
							 const std::vector<const ee::Sprite*>& sprites,
							 wxGLContext* glctx)
	: ee::CameraCanvas(stage_wnd, stage, glctx)
	, m_sprites(sprites)
{
}

void PreviewCanvas::OnDrawSprites() const
{
	for (size_t i = 0, n = m_sprites.size(); i < n; ++i)
	{
		const ee::Sprite* spr = m_sprites[i];
// 		if (!sprite->visiable)
// 			continue;
		s2::RenderParams params;
		params.color = spr->GetColor();
		ee::SpriteRenderer::Draw(spr, params);
	}
}

}<commit_msg>[FIXED] anim alone in complex preview<commit_after>#include "PreviewCanvas.h"

#include <ee/SpriteRenderer.h>
#include <ee/Sprite.h>
#include <ee/SceneNode.h>

namespace ecomplex
{

PreviewCanvas::PreviewCanvas(wxWindow* stage_wnd, ee::EditPanelImpl* stage, 
							 const std::vector<const ee::Sprite*>& sprites,
							 wxGLContext* glctx)
	: ee::CameraCanvas(stage_wnd, stage, glctx)
	, m_sprites(sprites)
{
}

void PreviewCanvas::OnDrawSprites() const
{
	for (size_t i = 0, n = m_sprites.size(); i < n; ++i)
	{
		const ee::Sprite* spr = m_sprites[i];
// 		if (!sprite->visiable)
// 			continue;
		s2::RenderParams params;
		params.color = spr->GetColor();
		ee::SpriteRenderer::Draw(spr, params);
	}

	ee::SceneNodeMgr::Instance()->Draw();
}

}
{'fraction_non_alphanumeric': 0.16500711237553342, 'fraction_numerical': 0.002844950213371266, 'mean_word_length': 4.719512195121951, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6805592', 'n_tokens_mistral': 581, 'n_tokens_neox': 542, 'n_words': 102}