Page MenuHome

scene.addObject and actuator EditObject create objects with the same names
Closed, ArchivedPublic

Description

System Information
Windows 8.1

Blender Version
Broken: 2.73a

Short description of error
If you several times add objects from the same inactive object, your scene has several objects with the same name.

Exact steps for others to reproduce the error

Open this file, run game engine and look into python console.

Event Timeline

Marcin Nijaki (marcino15) raised the priority of this task from to 90.
Marcin Nijaki (marcino15) updated the task description. (Show Details)
Marcin Nijaki (marcino15) edited a custom field.

I confirm the bug.

marcino15, Could you add Game Engine as Projects? (to have the bugs better organized)

Jorge Bernal (lordloki) lowered the priority of this task from 90 to Normal.

This isn't really a "bug", rather just a byproduct of the fact that the name is not unique for instances. For this reason, you must access your added objects from the addObject function, or the objectsLastCreated with the addObject actuator.

Jorge Bernal (lordloki) changed the task status from Unknown Status to Unknown Status.Jun 7 2015, 1:44 AM

After analyzing deeper, as well said by Angus, the name is not unique for instances. you can see this blenderartists thread to check how to proceed (http://blenderartists.org/forum/showthread.php?372830-Accessing-objects-after-adding-with-scene-addObject() )

Then I'm going to archive this report as it is not a bug but I've passed it to our TODO list (http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/GameEngine#Python_API)

Thanks for reporting.