Skip to content

Commit

Permalink
character fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanBluth committed Mar 13, 2016
1 parent eefbc26 commit aedb5f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions static/js/scenarioEditor/charView/charView.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ angular.module('scenarioEditor.charView', ['ngRoute', 'scenarioServices'])
textureService.getTextureById(joint.textures[i].id).then(
function (texture) {
try {
$scope.charToImgMap[char.id][component].push(texture);
if($scope.charToImgMap.hasOwnProperty(char.id) && $scope.charToImgMap[char.id].hasOwnProperty(component)){
$scope.charToImgMap[char.id][component].push(texture);
}
}catch (err){
console.log(err);
//console.log(err);
}
},
function (response) {
Expand Down
1 change: 0 additions & 1 deletion static/js/scenarioEditor/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,6 @@ scenarioServices.service('jointService', ['textureService', '$q', '$http', funct
}
var path = jointSrc.split("/master");
path = path.length > 1 ? path[1] : path[0];
console.log(path);
$http.get('/scenario/service/gitlab_asset/', {
params: {
asset: path
Expand Down

0 comments on commit aedb5f9

Please sign in to comment.