Permalink
Browse files

TextureProjector - show Gizmo when imported

  • Loading branch information...
1 parent a623818 commit 27167a2a4bf426e1d441ff69a319d0e59ce864fb @80prozent 80prozent committed Jul 5, 2013
@@ -3,6 +3,7 @@ package awaybuilder.controller.document
import away3d.cameras.Camera3D;
import away3d.containers.ObjectContainer3D;
import away3d.entities.Mesh;
+ import away3d.entities.TextureProjector;
import away3d.lights.LightBase;
import away3d.primitives.SkyBox;
@@ -18,6 +19,7 @@ package awaybuilder.controller.document
import awaybuilder.model.vo.scene.LightVO;
import awaybuilder.model.vo.scene.MeshVO;
import awaybuilder.model.vo.scene.SkyBoxVO;
+ import awaybuilder.model.vo.scene.TextureProjectorVO;
import awaybuilder.utils.scene.CameraManager;
import awaybuilder.utils.scene.Scene3DManager;
@@ -145,6 +147,11 @@ package awaybuilder.controller.document
{
Scene3DManager.addCamera( assets.GetObject(cameraVO) as Camera3D );
}
+ var textureProjectorVO:TextureProjectorVO = value as TextureProjectorVO;
+ if( textureProjectorVO )
+ {
+ Scene3DManager.addTextureProjector( assets.GetObject(textureProjectorVO) as TextureProjector, textureProjectorVO.texture.bitmapData );
+ }
}
private function addLight( value:Object ):void
{
@@ -2,6 +2,7 @@ package awaybuilder.controller.document
{
import away3d.cameras.Camera3D;
import away3d.containers.ObjectContainer3D;
+ import away3d.entities.TextureProjector;
import away3d.lights.LightBase;
import away3d.primitives.SkyBox;
@@ -16,10 +17,12 @@ package awaybuilder.controller.document
import awaybuilder.model.vo.scene.ContainerVO;
import awaybuilder.model.vo.scene.LightVO;
import awaybuilder.model.vo.scene.SkyBoxVO;
+ import awaybuilder.model.vo.scene.TextureProjectorVO;
import awaybuilder.utils.scene.CameraManager;
import awaybuilder.utils.scene.Scene3DManager;
import flash.display.DisplayObject;
+ import flash.display3D.textures.Texture;
import flash.events.Event;
import mx.collections.ArrayCollection;
@@ -114,6 +117,11 @@ package awaybuilder.controller.document
{
Scene3DManager.addCamera( assets.GetObject(cameraVO) as Camera3D );
}
+ var textureProjectorVO:TextureProjectorVO = value as TextureProjectorVO;
+ if( textureProjectorVO )
+ {
+ Scene3DManager.addTextureProjector( assets.GetObject(textureProjectorVO) as TextureProjector, textureProjectorVO.texture.bitmapData );
+ }
}
private function addLight( value:Object ):void
{

0 comments on commit 27167a2

Please sign in to comment.