Revision 25674
trunk/libraries/lib3DMap/src/org/gvsig/gvsig3d/cacheservices/FLayerCacheService.java | ||
---|---|---|
155 | 155 |
if (_layer.getClass().equals(FLyrVect.class)) { |
156 | 156 |
// Generate layers 3D properties |
157 | 157 |
Layer3DProps props3D = Layer3DProps.getLayer3DProps(_layer); |
158 |
// Getting layer transparency |
|
159 |
trans = ((FLyrDefault) _layer).getTransparency(); |
|
160 |
// Casting to float |
|
161 |
float transFloat = (float) ((float) (255) / 255.0);
|
|
162 |
// Setting in the layers 3D props |
|
163 |
props3D.setOpacity(transFloat); |
|
158 |
// // Getting layer transparency
|
|
159 |
// trans = ((FLyrDefault) _layer).getTransparency();
|
|
160 |
// // Casting to float
|
|
161 |
// float transFloat = (float) ((float) (trans) / 255.0);
|
|
162 |
// // Setting in the layers 3D props
|
|
163 |
// props3D.setOpacity(transFloat);
|
|
164 | 164 |
// fix opaque the layer to save in disk |
165 |
((FLyrDefault) _layer).setTransparency(255);
|
|
165 |
((FLyrDefault) _layer).setTransparency((int) (props3D.getOpacity()*255));
|
|
166 | 166 |
} |
167 | 167 |
|
168 | 168 |
try { |
Also available in: Unified diff