Browse Source

fix particle panel error

rdb 12 years ago
parent
commit
106a7977ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/tkpanels/ParticlePanel.py

+ 1 - 1
direct/src/tkpanels/ParticlePanel.py

@@ -2578,7 +2578,7 @@ class ParticlePanel(AppShell):
         # How many forces of the same type in the force group object
         # How many forces of the same type in the force group object
         count = 0
         count = 0
         for f in forceGroup:
         for f in forceGroup:
-            if f.getClassType().eq(force.getClassType()):
+            if f.getClassType() == force.getClassType():
                 count += 1
                 count += 1
         if isinstance(force, LinearVectorForce):
         if isinstance(force, LinearVectorForce):
             self.createLinearVectorForceWidget(
             self.createLinearVectorForceWidget(