roavatar-renderer 1.5.6 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43296,7 +43296,7 @@ class MeshDesc {
|
|
|
43296
43296
|
const layeredClothingCacheId = `${this.mesh}-${this.layerDesc.reference}`;
|
|
43297
43297
|
switch (FLAGS.LAYERED_CLOTHING_ALGORITHM) {
|
|
43298
43298
|
case "rbf": {
|
|
43299
|
-
const shouldAutoSkin = this.layerDesc.autoSkin === WrapLayerAutoSkin.EnabledOverride || this.layerDesc.autoSkin === WrapLayerAutoSkin.EnabledPreserve && mesh.skinning.skinnings.length < 1;
|
|
43299
|
+
const shouldAutoSkin = this.layerDesc.autoSkin === WrapLayerAutoSkin.EnabledOverride || this.layerDesc.autoSkin === WrapLayerAutoSkin.EnabledPreserve && mesh.skinning.skinnings.length < 1 || mesh.skinning.skinnings.length <= 0;
|
|
43300
43300
|
if (FLAGS.AUTO_SKIN_EVERYTHING || shouldAutoSkin) {
|
|
43301
43301
|
this.wasAutoSkinned = true;
|
|
43302
43302
|
const transferTo = ref_mesh.clone();
|
|
@@ -48195,7 +48195,7 @@ class HumanoidDescriptionWrapper extends InstanceWrapper {
|
|
|
48195
48195
|
const headShape = this.getBodyPartHeadShape(BodyPart.Head);
|
|
48196
48196
|
let contentRepresentationPriorityList = void 0;
|
|
48197
48197
|
if (bodyPart === BodyPart.Head && headShape.length > 0) {
|
|
48198
|
-
contentRepresentationPriorityList = [{ "format": headShape
|
|
48198
|
+
contentRepresentationPriorityList = [{ "format": avatarType === AvatarType.R15 ? headShape : `${headShape}_SpecialMesh`, "majorVersion": "1" }];
|
|
48199
48199
|
if (avatarType === AvatarType.R15) {
|
|
48200
48200
|
contentRepresentationPriorityList.push({ "format": "avatar_meshpart_head", "majorVersion": "1" });
|
|
48201
48201
|
}
|