Permalink
Browse files
Merge remote-tracking branch 'refs/remotes/origin/dev' into gh-pages
- Loading branch information...
Showing
with
4 additions
and
2 deletions.
-
+1
−1
index.html
-
+3
−1
js/main.js
|
@@ -57,7 +57,7 @@ |
|
|
<h3 class="panel-title">Transformations</h3> |
|
|
</div> |
|
|
<div id="transform-body" class="panel-body collapse in"> |
|
|
<div class="form-group"> |
|
|
<div class="form-group" id="transform-mirror"> |
|
|
<label for="transform-mirror">Mirror</label> |
|
|
<input type="radio" name="transform-mirror" id="transform-mirror-yes" value="yes" /> yes |
|
|
<input type="radio" name="transform-mirror" id="transform-mirror-no" value="no" checked="checked" /> no |
|
|
|
@@ -871,13 +871,15 @@ function updateTransformAction() { |
|
|
|
|
|
function updateTransformValues() { |
|
|
var current = transformations[transformAction]; |
|
|
var uniform = $('#transform input[type=radio]:checked').val() == 'yes'; |
|
|
var uniform = $('#transform-uniform input[type=radio]:checked').val() == 'yes'; |
|
|
var input = { |
|
|
x: parseFloat($transformX.val()), |
|
|
y: parseFloat($transformY.val()), |
|
|
z: parseFloat($transformZ.val()) |
|
|
}; |
|
|
|
|
|
console.log(uniform) |
|
|
|
|
|
input.x = isNaN(input.x) ? current.x : input.x; |
|
|
input.y = isNaN(input.y) ? current.y : input.y; |
|
|
input.z = isNaN(input.z) ? current.z : input.z; |
|
|
0 comments on commit
6cf10cc