Page MenuHome

Visibility bug with parent&child on Editobject_Addobject
Closed, ArchivedPublic


System Information
Windows7 intell HD graphics core i3 762MB

Blender Version
Broken: 2.49b, 2.69 possible in newer versions too.
Worked: none

Short description of error
There is a visibility bug, hard coding with python does not resolve it.
Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

copy default Cube, parent Cube.001(child) to Cube(parent)
on Cube(parent) in logic bricks; do a keyboard sensor (any key) > and (controller) >edit object_addobject (actuator) in "OB:" enter "Cube.001" without quotes.
on Cube(parent) go into edit mode and scale to a smaller size (so the added (Cube.001) object will appear bigger than Cube if spawned as visible)
exit edit mode.
On Cube.001 (child) do an Always sensor > python

in a text file to be used for the python script controller:
import GameLogic
cont = GameLogic.getCurrentController()

own = cont.owner
own.setVisible(1, 1)

send Cube.001(child) to layer 2 and keep layer 2 invisible.

run the game and press whatever key you set, the cube will be spawned but will not be visible, no matter what you try it's visibility flag will not toggle!

end bug.



Event Timeline

Cliff (JoshexDirad) updated the task description. (Show Details)
Cliff (JoshexDirad) raised the priority of this task from to Needs Triage by Developer.
Cliff (JoshexDirad) set Type to Bug.

And also : try with lastest version not 2.69

OK tristan, I will do so as I find time, got 3 versions of blender installed as is. wont have time to work on this till september.

Sergey Sharybin (sergey) closed this task as Archived.Jul 28 2015, 4:40 PM

@Clifford Sheridan (joshex), re-open the report once you can confirm the issue with latest build. Having reports for until you've got time to verify latest builds is not helpful at all.