Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assigning visible=false affects the wrong object #5

Open
ShadSterling opened this issue Aug 1, 2012 · 1 comment
Open

Assigning visible=false affects the wrong object #5

ShadSterling opened this issue Aug 1, 2012 · 1 comment

Comments

@ShadSterling
Copy link

In the following code, a.visible = False affects b:

#!/usr/bin/python

from __future__ import print_function, division
from visual import *
import time

a = sphere( pos=(-1,0,0) )
b = sphere( pos=(1,0,0) )

time.sleep( 1 )
a.opacity = .75
time.sleep( 1 )
a.opacity = 1
time.sleep( 1 )
a.visible = False
time.sleep( 1 )
a.color = color.red
@BruceSherwood
Copy link
Member

This is quite amazing, and not a previously known bug. Here's an even simpler scheme:

a = sphere( pos=(-1,0,0) )
b = sphere( pos=(1,0,0) )

a.opacity = 0.5
scene.mouse.getclick()
a.opacity = 1 # if this is less than 1, no bug (it is object a that becomes invisible)
a.visible = False

Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants