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
+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();