Mesh property is suddenly undefined

Hi everyone,

Mesh.overrideMaterialSideOrientation is undefined. I have not updated my local project yet. But from what I see in the playground: Babylon.js Playground (throws in v7, works in v6)

Not good. Could be related to this:

//https://github.com/BabylonJS/Babylon.js/blob/master/CHANGELOG.md
Improve clarity about how mesh.sideOrientation works - [New Feature] by deltakosh (#15189)
//https://github.com/BabylonJS/Babylon.js/releases
#15189: Improve clarity about how mesh.sideOrientation works
//https://github.com/BabylonJS/Babylon.js/pull/15189/
There, I see "breaking change" as a second label.

May I please ask for confirmation that this is an intended breaking change?

Best wishes
Joe

CC @Deltakosh , this is related to a PR merged yesterday - Improve clarity about how mesh.sideOrientation works by deltakosh · Pull Request #15189 · BabylonJS/Babylon.js (github.com) (which you are referencing in your message)

Yes it is! I will document it today.

New name is simply sideOrientation

May I ask what is your use case? Why do you need it?

1 Like

Btw if it is a problem I can keep the previous one and flag it as deprecated

Here is the updated doc page:
Babylon.js Breaking Changes | Babylon.js Documentation (babylonjs.com)

1 Like