Skip to content
Snippets Groups Projects
Commit 0d6a88a6 authored by ¡Cinder! ㊝'s avatar ¡Cinder! ㊝ :speech_balloon:
Browse files

ALCH-261 - Sync material layers on the face of an object

parent f3e6d8ab
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,17 @@
<llsd xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="llsd.xsd">
<map>
<key>AlchemyAlignMaterials</key>
<map>
<key>Comment</key>
<string>Align material layers when modifying object faces</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>AlchemyAutoAcceptNewInventory</key>
<map>
<key>Comment</key>
......
This diff is collapsed.
......@@ -174,6 +174,8 @@ protected:
void onCommitPlanarAlign();
void onCommitRepeatsPerMeter(LLUICtrl* ctrl);
void onClickAutoFix();
void onClickAlignMats(const LLSD& userdata);
void alignMaterialProperties();
static F32 valueGlow(LLViewerObject* object, S32 face);
......@@ -201,6 +203,11 @@ private:
F32 getCurrentShinyScaleV();
F32 getCurrentShinyOffsetU();
F32 getCurrentShinyOffsetV();
F32 getCurrentTextureRot();
F32 getCurrentTextureScaleU();
F32 getCurrentTextureScaleV();
F32 getCurrentTextureOffsetU();
F32 getCurrentTextureOffsetV();
// Update visibility of controls to match current UI mode
// (e.g. materials vs media editing)
......
......@@ -101,6 +101,16 @@
name="checkbox fullbright"
top_pad="4"
width="81" />
<check_box
control_name="AlchemyAlignMaterials"
height="19"
label="Sync Materials Layers"
layout="topleft"
left_pad="50"
name="checkbox align mats"
tool_tip="Synchronize material layers across faces of an object"
top_delta="0"
width="110" />
<combo_box
height="23"
layout="topleft"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment