Skip to content

[object Object] instead of color for topColor bottomColor a-sky created from environment component #743

@vincentfretin

Description

@vincentfretin

The issue is in aframe 1.5.0, 1.6.0 and master.

image

Same when you copy the entity to clipboard:
image

It's because the environment component set directly a THREE.Color instance instead of hex color string on those properties, see
https://github.com/supermedium/aframe-environment-component/blob/b339b293139cd8c10f03d4c9a162c3b5ea55a794/index.js#L325-L326

@mrxz maybe you can take a look, that's probably a similar serialization issue than HTMLImageElement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions