fixed compile all classes define + flxview3d check

This commit is contained in:
Yoshman29
2022-12-14 13:06:30 +01:00
parent 2830966646
commit 2ebe46c835
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -139,7 +139,7 @@
<!-- Comment this off to prevent additional classes from being compiled.
Reduces compilation time at the cost of less HScript flexibility. !-->
<haxedef name="COMPILE_ALL_CLASSES" />
<define name="COMPILE_ALL_CLASSES" />
<section if="COMPILE_ALL_CLASSES">
<haxeflag name="-dce" value="no" />
+1 -1
View File
@@ -1 +1 @@
1470
1471
+6
View File
@@ -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();