diff options
Diffstat (limited to 'js/panels')
-rwxr-xr-x | js/panels/Materials/materials-popup.reel/materials-popup.js | 8 |
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; |