Closed tothatt81 closed 3 years ago
Hi Attila,
That does look like a bug with Scene#setPickable()
- I'll fix in the next release this week.
Not being able to batch-set "culled" is intentional though, where it's expected that visibility culling logic would be responsible to iterating over batches of objects to set that property.
Thanks @xeolabs. Would it be also possible to port it back to 1.3.x?
@eriadam not sure yet, but if not, I can always provide a patch that you could apply locally to your 1.3.x code base.
I'm thinking that it seems like a good idea going forwards to have a branch for each release, then releases can be patched like this.
Thanks @xeolabs , do you maybe have a date for the release of 1.4.2?
@eriadam no probs, I've just now published 1.4.2.
Hey @xeolabs ,
When loading a model into the viewer, it is possible to set several properties that will act upon the whole model. Some of these properties that we have used so far are:
edges
,visible
,pickable
,xrayed
, etc. For instance, if we load a model as such:all elements of the model will be xrayed as expected. This works fine. So far so good.
In our use case however, once the model has been loaded into the viewer, we may want to overwrite some of these properties of certain individual elements on demand (ie user action), like so:
Now, what we found is that it works for certain properties but not for others. It seems to work fine with the example (
xrayed
property) above. It also seems to work with the propertiesvisible
,selected
,highlighted
. However, it does not work withpickable
andculled
. For our present use case, I have to stress thatpickable
would be the most important but in our testing session we've seen that overwritingculled
doesn't seem to work either.This seems like a bug to us, or at the very least unexpected, inconsistent behaviour, given that overwriting
visible
,xrayed
,selected
andhighlighted
works as expected. As such, we'd like to ask you to please look into the issue and let us know of your findings.For your convenience, you'll find the full example with
pickable
here: https://gist.github.com/tothatt81/46e00f78395a83c243e934b932b08f44Thank you!
Best, Attila