Browse Source

fix backwards logic

David Rose 18 years ago
parent
commit
00c57128bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/particlesystem/spriteParticleRenderer.cxx

+ 1 - 1
panda/src/particlesystem/spriteParticleRenderer.cxx

@@ -243,9 +243,9 @@ set_from_node(const NodePath &node_path, const string &model, const string &node
 ////////////////////////////////////////////////////////////////////
 void SpriteParticleRenderer::
 set_from_node(const NodePath &node_path, bool size_from_texels) {
+  nassertv(!node_path.is_empty());
   // Clear all texture information
   _anims.clear();
-  nassertv(node_path.is_empty());
   add_from_node(node_path,size_from_texels,true);
 }