Commit 950ab34e7248493c8e351823309db35a458efa1f

Authored by Amrita Vishnoi
2 parents 5526609f 2145f310

Male Medial fix

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -1012,8 +1012,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1012 1012 SelectedLayerData = $rootScope.BodyLayerData.Layers.DataLayer[dataLength - $scope.userInput - 1];
1013 1013 if ((SelectedLayerData != null || SelectedLayerData != undefined))
1014 1014  
1015   - if ($scope.layerNumber == 0)
1016   - {
  1015 + if ($scope.layerNumber == 0) {
1017 1016 console.log('lNo: ' + $scope.layerNumber + ' and BodyRegion.length: ' + SelectedLayerData.BodyRegion.length);
1018 1017  
1019 1018 if (SelectedLayerData.BodyRegion.length > 0) {
... ... @@ -1022,15 +1021,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1022 1021 var bodyRegion = SelectedLayerData.BodyRegion[z]._BodyRegionId;
1023 1022 var bodyRegionSkinTone = SelectedLayerData.BodyRegion[z].Image._SkintTone;
1024 1023  
1025   - if ($rootScope.voId == 3)
1026   - {
  1024 + if ($rootScope.viewOrientationId == 3 && bodyRegionId == 1) {
1027 1025 console.log('$rootScope.voId: ' + $rootScope.voId);
1028   -
1029   - if (bodyRegion == 1 && bodyRegionSkinTone != $scope.skinTone) {
1030   -
1031   - console.log('path:'+ "content/images/DA/" + $scope.zoomInOut + "/body-views/" + $rootScope.voId + "/layers/" + $scope.layerNumber + "/" + bodyRegionId + "/" + $scope.skinTone + "/" + SelectedLayerData.BodyRegion[z].Image._ImageName);
1032   -
1033   - return "content/images/DA/" + $scope.zoomInOut + "/body-views/" + $rootScope.voId + "/layers/" + $scope.layerNumber + "/" + bodyRegionId + "/" + $scope.skinTone + "/" + SelectedLayerData.BodyRegion[z].Image._ImageName;
  1026 + if (bodyRegion == bodyRegionId && bodyRegionSkinTone == 'W') {
  1027 + return "content/images/DA/" + $scope.zoomInOut + "/body-views/" + $rootScope.voId + "/layers/" + $scope.layerNumber + "/" + bodyRegionId + "/W/" + SelectedLayerData.BodyRegion[z].Image._ImageName;
1034 1028 }
1035 1029 }
1036 1030  
... ...