public void update(LightList local, LightList parent) {
        // clear the list as it will be reconstructed
        // using the arguments
        clear();

        while (list.length <= local.listSize) {
            doubleSize();
        }

        // add the lights from the local list
        System.arraycopy(local.list, 0, list, 0, local.listSize);
        for (int i = 0; i < local.listSize; i++) {
//            list[i] = local.list[i];
            distToOwner[i] = Float.NEGATIVE_INFINITY;
        }

        // if the spatial has a parent node, add the lights
        // from the parent list as well
        if (parent != null) {
            int sz = local.listSize + parent.listSize;
            while (list.length <= sz)
                doubleSize();

            for (int i = 0; i < parent.listSize; i++) {
                int p = i + local.listSize;
                list[p] = parent.list[i];
                distToOwner[p] = Float.NEGATIVE_INFINITY;
            }

            listSize = local.listSize + parent.listSize;
        } else {
            listSize = local.listSize;
        }
    }
Updates a "world-space" light list, using the spatial's local-space
light list and its parent's world-space light list.

@param local the local-space LightList (not null)
@param parent the parent's world-space LightList
jme3-core/src/main/java/com/jme3/light/LightList.java