|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright (c) 2017 jMonkeyEngine
|
|
|
|
|
|
+ * Copyright (c) 2017-2021 jMonkeyEngine
|
|
* All rights reserved.
|
|
* All rights reserved.
|
|
*
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -41,6 +41,8 @@ import com.jme3.material.plugins.J3MLoader;
|
|
import com.jme3.math.Ray;
|
|
import com.jme3.math.Ray;
|
|
import com.jme3.math.Vector3f;
|
|
import com.jme3.math.Vector3f;
|
|
import com.jme3.scene.shape.Quad;
|
|
import com.jme3.scene.shape.Quad;
|
|
|
|
+import com.jme3.system.JmeSystem;
|
|
|
|
+import com.jme3.system.MockJmeSystemDelegate;
|
|
import org.junit.Test;
|
|
import org.junit.Test;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -114,6 +116,7 @@ public class PhantomTrianglesTest {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void testPhantomTriangles() {
|
|
public void testPhantomTriangles() {
|
|
|
|
+ JmeSystem.setSystemDelegate(new MockJmeSystemDelegate());
|
|
assetManager = new DesktopAssetManager();
|
|
assetManager = new DesktopAssetManager();
|
|
assetManager.registerLocator(null, ClasspathLocator.class);
|
|
assetManager.registerLocator(null, ClasspathLocator.class);
|
|
assetManager.registerLoader(J3MLoader.class, "j3m", "j3md");
|
|
assetManager.registerLoader(J3MLoader.class, "j3m", "j3md");
|