Changed the way shadow layers will be handled because we only have a list of
components when creating our character and we need to be able to determine which shadow layers are needed from the set of active components. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3739 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -251,6 +251,9 @@ public class CharacterManager
|
||||
Log.debug("Compositing action [action=" + action +
|
||||
", descrip=" + descrip + "].");
|
||||
|
||||
// this will be used to construct any shadow layers
|
||||
HashMap shadows = null;
|
||||
|
||||
// create colorized versions of all of the source action frames
|
||||
ComponentFrames[] sources = new ComponentFrames[ccount];
|
||||
for (int ii = 0; ii < ccount; ii++) {
|
||||
@@ -268,16 +271,16 @@ public class CharacterManager
|
||||
sources[ii].frames = (zations == null || zations[ii] == null) ?
|
||||
source : source.cloneColorized(zations[ii]);
|
||||
|
||||
// load up the shadow images if they are needed
|
||||
if (sources[ii].ccomp.componentClass.shadowed) {
|
||||
sources[ii].shadowFrames = sources[ii].ccomp.getFrames(
|
||||
action + StandardActions.SHADOW_SUFFIX);
|
||||
if (sources[ii].shadowFrames == null) {
|
||||
Log.warning("Missing shadow frames for action " +
|
||||
"[action=" + action +
|
||||
", comp=" + sources[ii].ccomp + "].");
|
||||
}
|
||||
}
|
||||
// // load up the shadow images if they are needed
|
||||
// if (sources[ii].ccomp.componentClass.isShadowed()) {
|
||||
// sources[ii].shadowFrames = sources[ii].ccomp.getFrames(
|
||||
// action + StandardActions.SHADOW_SUFFIX);
|
||||
// if (sources[ii].shadowFrames == null) {
|
||||
// Log.warning("Missing shadow frames for action " +
|
||||
// "[action=" + action +
|
||||
// ", comp=" + sources[ii].ccomp + "].");
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
// use those to create an entity that will lazily composite things
|
||||
|
||||
Reference in New Issue
Block a user