(2019-11-15, 18:38)Lasse Deleuran Wrote: Hi Orion,
Which part of the code is it that is causing issues?
There are currently two ways of enabling and disabling logos:
LDR.Studs.makeGenerators() which can be called before the model is loaded to ensure that studs will be constructed correctly. I do not think this is the best option for setting the values here.
and
LDR.Studs.setStuds() which can be called to overwrite the part types for studs. After it has been called, the other parts that use studs will have to be rebuilt. To rebuild, the function removeAllMeshes() on meshCollectors can be used before calling draw() to rebuild.
I am having trouble. I'm using the LDR.Studs.setStuds() method.
Right now I'm doing something like this:
Code:
LDR.Studs.setStuds(ldrLoader, ldrOptions.studHighContrast, ldrOptions.studLogo, () => ldrLoader.load(partID));
ldrLoader.partTypes = {}; // Reset all stored data in the loader.
ldrLoader.load(partID);
This doesn't seem to work no matter what value I set ldrOptions.studLogo to.