[Bugs] #3361 Physics UNSP: Physics: grab objects crashes the activity

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Jun 5 16:11:47 EDT 2012


#3361: Physics: grab objects crashes the activity
------------------------------------------+---------------------------------
    Reporter:  manuq                      |          Owner:  garycmartin                
        Type:  defect                     |         Status:  assigned                   
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Physics                    |        Version:  Git as of bugdate          
    Severity:  Unspecified                |       Keywords:  12.1.0, patch              
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by dsd):

 In other cases we are choosing to break compatibility with old versions,
 or at least pre-2011, because of the overhead involved. Anyway, it is a
 matter personal preference.

 To keep compatibility you could do something like:
 {{{
 self.parent.mouseJoint = self.parent.world.CreateJoint(mj)
 if hasattr(self.parent.mouseJoint, 'getAsType'):
     self.parent.mouseJoint = self.parent.mouseJoint.getAsType()
 }}}

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3361#comment:23>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list