Page MenuHome

Minor template code patch. (objectHitList =/= hitObjectList)

Authored by Charles Scoville (CharlesScoville) on Jul 25 2017, 9:53 PM.



The Blender text editor's built in python template "Gamelogic" has a reference near the bottom to "objectHitList" as an alleged attribute to the KX_TouchSensor. This name is incorrect, it's correct name is "hitObjectList."

Attempting to access the suggested objectHitList returns error...

AttributeError: 'KX_TouchSensor' object has no attribute 'objectHitList'

The provided diff corrects this minor error.

Diff Detail

rB Blender

Event Timeline

Charles Scoville (CharlesScoville) created this object with edit policy "Administrators".
This revision is now accepted and ready to land.Jul 26 2017, 3:39 PM
This revision was automatically updated to reflect the committed changes.