Skip to content

UVUnwrapper.js contains obsolete addAttribute() function #677

@GitHubDragonFly

Description

@GitHubDragonFly

Describe the bug

It appears that three.js revisions higher than r140 would throw an error while r139 and r140 log a warning about the addAttribute function being renamed to setAttribute.

Expected behavior

Using the setAttribute() function should eliminate both warnings and errors.

Screenshots and Repro Model

This particular unwrapper I tested as an independent import just to see if it can function as such, without using the three-gpu-pathtracer library (so not sure where exactly in the library this unwrapper might be used).

Platform:

  • Device: [Laptop]
  • OS: [Windows]
  • GPU: [integrated NVidia GeForce]
  • Browser: [Firefox]
  • Browser Version: [132.0 (64-bit)]
  • Three.js version: [r140+]
  • Library version: [v0.0.23]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions