Make this method public, as it's now an override of a public method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4201 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -769,6 +769,21 @@ public class Model extends ModelNode
|
||||
}
|
||||
}
|
||||
|
||||
@Override // documentation inherited
|
||||
public void updateModelBound ()
|
||||
{
|
||||
if (worldBound == null) {
|
||||
return;
|
||||
}
|
||||
setTransform(getWorldTranslation(), getWorldRotation(),
|
||||
getWorldScale(), _xform);
|
||||
_xform.invertLocal();
|
||||
_xform.toTranslationVector(_trans);
|
||||
extractScale(_xform, _scale);
|
||||
_xform.toRotationQuat(_rot);
|
||||
_modelBound = worldBound.transform(_rot, _trans, _scale, _modelBound);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether this node was determined to be entirely outside the
|
||||
* view frustum.
|
||||
@@ -881,23 +896,6 @@ public class Model extends ModelNode
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the model bound based on the current world bound.
|
||||
*/
|
||||
protected void updateModelBound ()
|
||||
{
|
||||
if (worldBound == null) {
|
||||
return;
|
||||
}
|
||||
setTransform(getWorldTranslation(), getWorldRotation(),
|
||||
getWorldScale(), _xform);
|
||||
_xform.invertLocal();
|
||||
_xform.toTranslationVector(_trans);
|
||||
extractScale(_xform, _scale);
|
||||
_xform.toRotationQuat(_rot);
|
||||
_modelBound = worldBound.transform(_rot, _trans, _scale, _modelBound);
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts the scale factor from the given transform and normalizes it.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user