diff --git a/Project.xml b/Project.xml index 31a21ca4..564752e5 100644 --- a/Project.xml +++ b/Project.xml @@ -139,7 +139,7 @@ - +
diff --git a/buildnumber.txt b/buildnumber.txt index b1fc66ab..74532d80 100644 --- a/buildnumber.txt +++ b/buildnumber.txt @@ -1 +1 @@ -1470 \ No newline at end of file +1471 \ No newline at end of file diff --git a/source/flx3d/Flx3DView.hx b/source/flx3d/Flx3DView.hx index 46e19a79..ee21e252 100644 --- a/source/flx3d/Flx3DView.hx +++ b/source/flx3d/Flx3DView.hx @@ -15,6 +15,12 @@ import away3d.loaders.Loader3D; // FlxView3D with helpers for easier updating class Flx3DView extends FlxView3D { + + public function new(x:Float = 0, y:Float = 0, width:Int = -1, height:Int = -1, scale:Float = 1) { + if (!Flx3DUtil.is3DAvailable()) + throw "[Flx3DView] 3D is not available on this platform."; + super(x, y, width, height, scale); + } public function initLoader() { if (_loader != null) return; _loader = new Loader3D();