Browse Source

*** empty log message ***

rmcrivel 24 năm trước cách đây
mục cha
commit
c4902890a0
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      direct/src/particles/ParticleEffect.py

+ 3 - 3
direct/src/particles/ParticleEffect.py

@@ -8,14 +8,14 @@ import DirectNotifyGlobal
 class ParticleEffect(NodePath):
 
     notify = DirectNotifyGlobal.directNotify.newCategory('ParticleEffect')
-    id = 1 
+    pid = 1 
 
     def __init__(self, name=None, particles=None):
 	"""__init__()"""
 	NodePath.__init__(self)
 	if (name == None):
-	    name = 'particle-effect-%d' % ParticleEffect.id
-	    ParticleEffect.id += 1
+	    name = 'particle-effect-%d' % ParticleEffect.pid
+	    ParticleEffect.pid += 1
         self.assign(hidden.attachNewNode(name))
         # Record particle effect name
 	self.name = name