if (mField == null) {
return;
}
RenderScriptGL rs = SceneManager.getRS();
if (mChildren.size() != 0) {
Allocation childRSData = Allocation.createSized(rs, Element.ALLOCATION(rs),
mChildren.size());
mTransformData.children = childRSData;
Allocation[] childrenAllocs = new Allocation[mChildren.size()];
for (int i = 0; i < mChildren.size(); i ++) {
Transform child = mChildren.get(i);
childrenAllocs[i] = child.getRSData().getAllocation();
}
childRSData.copyFrom(childrenAllocs);
}
if (copyData) {
mField.set(mTransformData, 0, true);
}