Robustness++.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3992 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -26,6 +26,8 @@ import com.jme.scene.Spatial;
|
|||||||
|
|
||||||
import com.samskivert.util.ObserverList;
|
import com.samskivert.util.ObserverList;
|
||||||
|
|
||||||
|
import com.threerings.jme.Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a visual entity that one controls as a single unit. Sprites
|
* Represents a visual entity that one controls as a single unit. Sprites
|
||||||
* can be made to follow paths which is one of their primary reasons for
|
* can be made to follow paths which is one of their primary reasons for
|
||||||
@@ -156,6 +158,13 @@ public class Sprite extends Node
|
|||||||
*/
|
*/
|
||||||
public void pathCompleted ()
|
public void pathCompleted ()
|
||||||
{
|
{
|
||||||
|
if (_path == null) {
|
||||||
|
Log.warning("pathCompleted() called on pathless sprite " +
|
||||||
|
"(re-completed?) [sprite=" + this + "].");
|
||||||
|
Thread.dumpStack();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Path oldpath = _path;
|
Path oldpath = _path;
|
||||||
_path = null;
|
_path = null;
|
||||||
removeController(oldpath);
|
removeController(oldpath);
|
||||||
|
|||||||
Reference in New Issue
Block a user