Skip to content

Opacity resetting always sets opacity to 1 instead of original value #1978

@NiklasPor

Description

@NiklasPor

Describe the bug / question
I expected that the implementation resets the opacity when we assignentity.opacity = undefined, In reality it seems like setting it to undefined will always set it to 1.

Should we track the original opacity of the elements by ourself or is this unintended behavior?

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://jsfiddle.net/zfd3rqng/
  2. Left click on a window => opacity goes to 0.5
  3. Right click on a window => opacity should reset, but actually is set to 1

Xeokit 2.6.94

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions