Skip to content

Commit

Permalink
fix file rename bug
Browse files Browse the repository at this point in the history
  • Loading branch information
akdcl committed Dec 26, 2014
1 parent 2df3b61 commit 803ce0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DragonBonesDesignPanelLib/src/core/SettingManager.as
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@ package core

public function setExportVOValues(exportVO:ExportVO):void
{
exportVO.dragonBonesFileName = this.dragonBonesFileName;
exportVO.textureAtlasConfigFileName = this.textureAtlasConfigFileName;
exportVO.textureAtlasFileName = this.textureAtlasFileName;
exportVO.textureAtlasPath = this.textureAtlasPath;
exportVO.subTextureFolderName = this.subTextureFolderName;

exportVO.backgroundColor = exportBackgroundColor;
exportVO.scale = exportScale;
exportVO.textureAtlasPath = textureAtlasPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package core.service
import flash.geom.Rectangle;
import flash.utils.ByteArray;

import core.SettingManager;
import core.events.ServiceEvent;
import core.model.ImportModel;
import core.model.vo.ExportVO;
Expand Down Expand Up @@ -50,6 +51,9 @@ package core.service
importModel.name = _exportVO.name || importModel.name;
_exportVO.name = importModel.name;

// set export vo values
SettingManager.getInstance().setExportVOValues(_exportVO);

// only skeleton
if(importModel.vo.skeleton && !importModel.vo.textureAtlasConfig)
{
Expand Down

0 comments on commit 803ce0f

Please sign in to comment.