FIRE-17144: Option to rig to attachment spots
parent
606c707e69
commit
3f38bf1f0b
|
|
@ -33,6 +33,8 @@
|
|||
#include "llmatrix4a.h"
|
||||
#include <boost/bind.hpp>
|
||||
|
||||
#include "../llxml/llcontrol.h"
|
||||
|
||||
std::list<LLModelLoader*> LLModelLoader::sActiveLoaderList;
|
||||
|
||||
void stretch_extents(LLModel* model, LLMatrix4a& mat, LLVector4a& min, LLVector4a& max, BOOL& first_transform)
|
||||
|
|
@ -207,6 +209,35 @@ LLModelLoader::LLModelLoader(
|
|||
mJointMap["lShin"] = "mKneeLeft";
|
||||
mJointMap["lFoot"] = "mFootLeft";
|
||||
|
||||
// <FS:Ansariel> FIRE-17144: Option to rig to attachment spots
|
||||
if (LLControlGroup::getInstance("Global")->getBOOL("FSEnableRiggingToAttachmentSpots"))
|
||||
{
|
||||
mJointMap["Right_Ear"] = "Right Ear";
|
||||
mJointMap["Left_Ear"] = "Left Ear";
|
||||
mJointMap["Right_Eyeball"] = "Right Eyeball";
|
||||
mJointMap["Left_Eyeball"] = "Left Eyeball";
|
||||
mJointMap["Right_Shoulder"] = "Right Shoulder";
|
||||
mJointMap["Left_Shoulder"] = "Left Shoulder";
|
||||
mJointMap["R_Upper_Arm"] = "R Upper Arm";
|
||||
mJointMap["L_Upper_Arm"] = "L Upper Arm";
|
||||
mJointMap["R_Forearm"] = "R Forearm";
|
||||
mJointMap["L_Forearm"] = "L Forearm";
|
||||
mJointMap["Right_Hand"] = "Right Hand";
|
||||
mJointMap["Left_Hand"] = "Left Hand";
|
||||
mJointMap["Right_Pec"] = "Right Pec";
|
||||
mJointMap["Left_Pec"] = "Left Pec";
|
||||
mJointMap["Avatar_Center"] = "Avatar Center";
|
||||
mJointMap["Right_Hip"] = "Right Hip";
|
||||
mJointMap["Left_Hip"] = "Left Hip";
|
||||
mJointMap["R_Upper_Leg"] = "R Upper Leg";
|
||||
mJointMap["L_Upper_Leg"] = "L Upper Leg";
|
||||
mJointMap["R_Lower_Leg"] = "R Lower Leg";
|
||||
mJointMap["R_Lower_Leg"] = "R Lower Leg";
|
||||
mJointMap["Right_Foot"] = "Right Foot";
|
||||
mJointMap["Left_Foot"] = "Left Foot";
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
|
||||
//move into joint mapper class
|
||||
//1. joints for joint offset verification
|
||||
mMasterJointList.push_front("mPelvis");
|
||||
|
|
|
|||
|
|
@ -23693,6 +23693,17 @@ Change of this parameter will affect the layout of buttons in notification toast
|
|||
<key>Value</key>
|
||||
<integer>20</integer>
|
||||
</map>
|
||||
<key>FSEnableRiggingToAttachmentSpots</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Enable upload of mesh models rigged to attachment spots</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
</map>
|
||||
</llsd>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue