api-issue-tracker icon indicating copy to clipboard operation
api-issue-tracker copied to clipboard

materials#current not in sync with GUI on Mac

Open Fredosixx opened this issue 3 years ago • 4 comments

on Mac, when you change the current material in the Material browser dialog, the method materials.current does not return the changed material. It is only when applied to an entity that the material is considered current.

This is inconsistent with Windows, where materials.current is always in sync with the material browser dialog.

Similarly, and probably due to the same issue, the materials observer does not fire the onMaterialSetCurrent event on Mac, whereas it does on Windows

I don't know if this has been logged already in this GitHub database, but this is an old bug, still present in SU2022. Basically, on Mac, the API has no way to know which material will be applied before it is applied.

Fredosixx avatar Feb 20 '22 22:02 Fredosixx

Logged as: SKEXT-3400

sketchup[bot] avatar May 02 '22 16:05 sketchup[bot]

Similarly, and probably due to the same issue, the materials observer does not fire the onMaterialSetCurrent event on Mac, whereas it does on Windows

Issue 341 : MaterialObserver::onMaterialSetCurrent behaviour different on windows/osx filed 1 OCT 2019 by @noelwarren

Also Issue #340 shows other Mac problems with the MaterialsObserver.


Also there is a Mac only bug with Sketchup::Materials#current= SEE: Issue 571 : Materials#current= create a new material on first use filed 14 NOV 2020 by @bbeaulant

DanRathbun avatar May 02 '22 22:05 DanRathbun

This is still an issue as of October 21st 2024.

CAUL2000 avatar Oct 21 '24 11:10 CAUL2000

This is NOT an issue as of April 4th 2025!

CAUL2000 avatar Apr 07 '25 09:04 CAUL2000