aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Materials
diff options
context:
space:
mode:
authorhwc4872012-05-25 13:35:10 -0700
committerhwc4872012-05-25 13:35:10 -0700
commit725c2175f20b5e0829518f725fd26cc077748bdf (patch)
treeb1dc12366de7df0434a9b99a191633587e4e0863 /js/panels/Materials
parentbc1b0276a3947e10f914e83f9750add4fa8b6c00 (diff)
downloadninja-725c2175f20b5e0829518f725fd26cc077748bdf.tar.gz
Parameters for twistVertex material
Diffstat (limited to 'js/panels/Materials')
-rwxr-xr-xjs/panels/Materials/materials-popup.reel/materials-popup.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/panels/Materials/materials-popup.reel/materials-popup.js b/js/panels/Materials/materials-popup.reel/materials-popup.js
index 1e92e144..1237e602 100755
--- a/js/panels/Materials/materials-popup.reel/materials-popup.js
+++ b/js/panels/Materials/materials-popup.reel/materials-popup.js
@@ -166,6 +166,10 @@ exports.MaterialsPopup = Montage.create(Component, {
166 rtnValue = value; 166 rtnValue = value;
167 break; 167 break;
168 168
169 case "angle":
170 rtnValue = value*3.14159/180.0;
171 break;
172
169 case "file": 173 case "file":
170 if (value && (value.length > 0)) 174 if (value && (value.length > 0))
171 { 175 {
@@ -324,6 +328,10 @@ exports.MaterialsPopup = Montage.create(Component, {
324 obj = this.createFloatData( propLabels[i], propValues[i] ); 328 obj = this.createFloatData( propLabels[i], propValues[i] );
325 break; 329 break;
326 330
331 case "angle":
332 obj = this.createFloatData( propLabels[i], propValues[i]*180.0/3.14159 );
333 break;
334
327 case "file": 335 case "file":
328 obj = this.createFileData( propLabels[i], propValues[i] ); 336 obj = this.createFileData( propLabels[i], propValues[i] );
329 break; 337 break;