1
0
Fork 0
mirror of https://github.com/haselkern/Minecraft-ArmorStand.git synced 2025-05-17 15:05:33 +00:00

Model Scales If Set As Small

This commit is contained in:
Lars Martens 2015-03-21 15:56:20 +01:00
parent 176cb53e1f
commit 0be91b783b

View file

@ -308,6 +308,12 @@ function updateUI(){
mArmRight.rotation.set(rightArm.x * DEG2RAD, -rightArm.y * DEG2RAD, -rightArm.z * DEG2RAD); mArmRight.rotation.set(rightArm.x * DEG2RAD, -rightArm.y * DEG2RAD, -rightArm.z * DEG2RAD);
armorstand.rotation.y = -rotation * DEG2RAD; armorstand.rotation.y = -rotation * DEG2RAD;
// Scale model, depending on small variable
if(small)
armorstand.scale.set(0.6, 0.6, 0.6);
else
armorstand.scale.set(1, 1, 1);
//Set Visibility //Set Visibility
mArmRight.visible = mArmLeft.visible = showArms; mArmRight.visible = mArmLeft.visible = showArms;
mBasePlate.visible = !noBasePlate; mBasePlate.visible = !noBasePlate;