star_mod_renderer
Advanced tools
Comparing version 1.0.50 to 1.0.51
{ | ||
"name": "star_mod_renderer", | ||
"version": "1.0.50", | ||
"version": "1.0.51", | ||
"description": "star mod project render auxiliary", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -97,2 +97,3 @@ /** | ||
} from "./helper/parser"; | ||
import { isFashionHair } from "."; | ||
@@ -228,2 +229,11 @@ export class Render extends RenderBase { | ||
this.auxiliaryModels.femaleHead = defaultHeadModelRender; | ||
const fashionHairModel = modelRender.getModel(); | ||
const femaleHeadModel = this.auxiliaryModels.femaleHead.getModel(); | ||
let headBones = null; | ||
femaleHeadModel.traverse((item) => { | ||
if(item.name === 'root') { | ||
headBones = item; | ||
} | ||
}); | ||
fashionHairModel.add(headBones.clone(true)); | ||
} | ||
@@ -536,2 +546,16 @@ if (isFashionMale(goodSecondaryClassification)) { | ||
this.auxiliaryModels.femaleHead = defaultHeadModelRender; | ||
let fashionHairModel = null; | ||
standardGoods.forEach((item, index) => { | ||
if (isFashionHair(item.goodSecondaryClassification)) { | ||
fashionHairModel = this.mainModels[index].getModel(); | ||
} | ||
}); | ||
const femaleHeadModel = this.auxiliaryModels.femaleHead.getModel(); | ||
let headBones = null; | ||
femaleHeadModel.traverse((item) => { | ||
if(item.name === 'root') { | ||
headBones = item; | ||
} | ||
}); | ||
fashionHairModel.add(headBones.clone(true)); | ||
} | ||
@@ -538,0 +562,0 @@ if (isFashionMale(goodSecondaryClassification)) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
383384
10497