Page 1 of 1

Custom property bug

Posted: Thu Aug 13, 2015 11:19 am
by joolean
I was unable to create any joints in my Rube file and kept getting the following error:

Could not find body A for joint (body id 3)
Could not find body B for joint (body id 0)
addJoint failed

I worked out it's because I had a custom body property called "id" which was causing the following corruption:
( getBody( 1 ).id == 3 ) = true

Had I read RTFM on custom properties first I might have saved myself from the mistake in the first place, however I'd still call this a bug because it allows users to corrupt the file through normal program operations.
Perhaps make a list of reserved class property names and prevent users from being able to make custom properties with those names.

Re: Custom property bug

Posted: Thu Aug 13, 2015 2:21 pm
by iforce2d
Good point, thanks.