if (parent != null) Spatial.clearCurrentStates(); for (int i = 0; i < states.length; i++) { if (states[i] != currentStates[i]) { states[i].apply(); currentStates[i] = states[i]; } } }
for (int i = 0; i < states.length; i++) { if (states[i] != currentStates[i]) { states[i].apply(); currentStates[i] = states[i]; } } }
	public void applyStates() {		if (parent != null)			Spatial.clearCurrentStates();		for (int i = 0; i < states.length; i++) {			if (states[i] != currentStates[i]) {				states[i].apply();				currentStates[i] = states[i];			}		}	}