Ubuntu 14.10, GeForce 460.
Broken: 2.72b & 2f637004d57b4220e483dc60f72edc86b88d3102
Short description of error
bpy.ops.logic.controller_add(type='PYTHON', name='Startup') will create a controller that is named Startup1 when there is already another logic brick with the name Sensor. However, in the GUI itself, it is perfectly possible to have both a sensor and controller with the same name.
Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps
- Open the attached Blend file
- Run the script in the bottom panel
- Inspect the names of the logic bricks
*Expected behaviour*: both logic bricks are named Startup
*Observed behaviour*: the controller is named Startup1
You can rename the controller to Startup, and see that Blender allows this just fine.