No subject
Wed Apr 28 21:25:55 PDT 2010
gAgentAvatarp->setLocalTexture* that applies the texture in
*LLPanelEditWearable::onTexturePickerCommit
*asks for, among other things, the slot index (certain wearables such as
skin have more than one slot, such as head/upper body/lower body) which is
exactly what it's asking for in form of a *entry->mTextureIndex.*
Long story short, it determines the slot by looking at the texture ctrl
which obviously i can't have when the appearance panel does not exist.
I have discovered that wearable/mTEmap(texture map)/mTexLayers/mTexLayerSet
contains a mBakedTexIndex which seems, from my observation, to contain a
name for it's appropriate slot of an appropriate wearable.
So my question is: would it be correct to assume that i can manually
extrapolate mTextureIndex needed for setLocalTexture from mBakedTexIndex, or
am i missing something here?
--00163683236a4cd47c04abcb6ebd
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">This is a somewhat specialized question.<div>I am currentl=
y exploring ways to commit a texture onto an avatar layer without having th=
e appearance panel open.</div><div><br></div><div>From what i understood in=
the code, the function =A0<i>gAgentAvatarp->setLocalTexture</i> that ap=
plies the texture in=A0<i>LLPanelEditWearable::onTexturePickerCommit </i>as=
ks for, among other things, the slot index (certain wearables such as skin =
have more than one slot, such as head/upper body/lower body) which is exact=
ly what it's asking for in form of a=A0<i>entry->mTextureIndex.</i><=
/div>
<div>Long story short, it determines the slot by looking at the texture ctr=
l which obviously i can't have when the appearance panel does not exist=
.</div><div><br></div><div>I have discovered that wearable/mTEmap(texture m=
ap)/mTexLayers/mTexLayerSet contains a mBakedTexIndex which seems, from my =
observation, to contain a name for it's appropriate slot of an appropri=
ate wearable.</div>
<div><br></div><div>So my question is: would it be correct to assume that i=
can manually extrapolate mTextureIndex needed for setLocalTexture from mBa=
kedTexIndex, or am i missing something here?</div></div>
--00163683236a4cd47c04abcb6ebd--
More information about the opensource-dev
mailing list