mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Merge commit '3ec0e1986f5580bbe83f2d1a1dd8a022475b8ac0' into v2.2.0-release
* commit '3ec0e1986f5580bbe83f2d1a1dd8a022475b8ac0': Refine native particle logic (#1796)
This commit is contained in:
@@ -213,13 +213,13 @@ void ParticleSimulator::onDisable()
|
||||
|
||||
void ParticleSimulator::render(float dt)
|
||||
{
|
||||
// uv size must equal 8,because per particle has 4 vertex.
|
||||
if (_uv.size() != 8)
|
||||
if (_finished || _nodeProxy == nullptr || _effect == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_nodeProxy == nullptr)
|
||||
// uv size must equal 8,because per particle has 4 vertex.
|
||||
if (_uv.size() != 8)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user