Skip to content

DecalGeometry.clone() broken; #29859

@Benjythebee

Description

@Benjythebee

Description

Hi,
DecalGeometry.clone() broke since a recent new release;

Here is a reproduction https://jsfiddle.net/0186fxp3/.
See line 92

      try{
      	geometryClone = decalGeometry.clone()
      }catch(e){
      	console.error(e.toString())
      }

It seems the mesh isn't passed to the constructor of the geometry.

Reproduction steps

  1. create new decalGeometry
  2. call decalGeometry.clone()

Code

      try{
      	geometryClone = decalGeometry.clone()
      }catch(e){
      	console.error(e.toString())
      }

Live example

https://jsfiddle.net/0186fxp3/

Screenshots

image

Version

0.169, 0.170

Device

Desktop

Browser

Chrome

OS

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions