Skip to content
Permalink
Browse files
Fix Keep Error in Physics-31
* groundBody does not have userData, so skip it,
* increment version to 32,

Signed-off-by: James Cameron <quozl@laptop.org>
  • Loading branch information
nicholaskernan authored and quozl committed Jan 2, 2017
1 parent 79dbfc3 commit 0e7f0dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
@@ -4,7 +4,7 @@ summary = Prove Sir Isaac Newton right! Create real life simulations using diffe
bundle_id = org.laptop.physics
exec = sugar-activity activity.PhysicsActivity
icon = activity-physics
activity_version = 31
activity_version = 32
max_participants = 4
show_launcher = yes
mime_types = application/x-physics-activity;
@@ -476,6 +476,8 @@ def get_world_model(self, additional_vars={}, serialize=False):

bodylist = []
for body in self.world.bodies:
if body == self.world.groundBody:
continue
body.userData["saveid"] = save_id_index # set temporary data
save_id_index += 1
shapelist = body.fixtures

0 comments on commit 0e7f0dd

Please sign in to comment.