From 2ebe46c83522faed736be88d9b47a2fd83f427c7 Mon Sep 17 00:00:00 2001
From: Yoshman29 <81191621+YoshiCrafter29@users.noreply.github.com>
Date: Wed, 14 Dec 2022 13:06:30 +0100
Subject: [PATCH] fixed compile all classes define + flxview3d check
---
Project.xml | 2 +-
buildnumber.txt | 2 +-
source/flx3d/Flx3DView.hx | 6 ++++++
3 files changed, 8 insertions(+), 2 deletions(-)
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();