Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

small ui cleanup on weight painting

Scott Petrovic28df2a43cfb8
diff --git a/src/create.html b/src/create.html
index 7f6ec4e..61214a3 100644
--- a/src/create.html
+++ b/src/create.html
@@ -381,14 +381,22 @@
</span> -->
<span id="weight-paint-step-tools" style="display: none; flex-direction: column; max-width: 320px;">
- <div class="pill-switch-group" aria-label="Weight painting mode" style="margin: 0 0 0.75rem;">
- <div class="pill-switch">
- <input type="radio" id="weight-paint-mode-paint" name="weight-paint-step-view-mode" value="paint" checked />
- <label for="weight-paint-mode-paint">Paint</label>
+ <div style="display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem;">
+ <div class="pill-switch-group" aria-label="Weight painting mode" style="margin: 0;">
+ <div class="pill-switch">
+ <input type="radio" id="weight-paint-mode-paint" name="weight-paint-step-view-mode" value="paint" checked />
+ <label for="weight-paint-mode-paint">Paint</label>
- <input type="radio" id="weight-paint-mode-test" name="weight-paint-step-view-mode" value="test" />
- <label for="weight-paint-mode-test">Test</label>
+ <input type="radio" id="weight-paint-mode-test" name="weight-paint-step-view-mode" value="test" />
+ <label for="weight-paint-mode-test">Test</label>
+ </div>
</div>
+
+ <button id="weight-paint-step-reset" class="secondary-button" type="button" disabled
+ aria-label="Reset weights to auto"
+ data-tippy-content="Reset weights to auto: restore the automatic weights from skinning and remove all manual painting">
+ <img src="images/icons/reset.svg" alt="" width="20" height="20" />
+ </button>
</div>
<span id="weight-paint-paint-tools" style="display: flex; flex-direction: column; gap: 0.75rem;">
@@ -416,6 +424,8 @@
</div>
</div>
+ <hr style="width: 100%; margin: 0;" />
+
<div class="pill-switch-group" aria-label="Weight brush mode" style="margin: 0;"
data-tippy-content="Brush mode. Shortcut: X">
<div class="pill-switch">
@@ -442,10 +452,7 @@
<span id="weight-paint-step-strength-value">50%</span>
</div>
- <button id="weight-paint-step-reset" class="secondary-button" type="button" disabled
- data-tippy-content="Restore the automatic weights from skinning and remove all manual painting">
- Reset weights to auto
- </button>
+ <hr style="width: 100%; margin: 0;" />
<div class="styled-checkbox">
<input type="checkbox" id="weight-paint-step-mirror" checked />