povmaniac,
If you added or removed items from the area, infinite, and ambient lights that may cause the problem you have. Maybe check the "split_list" code??? If you removed one item from infinite light then 21 would change to 20. It has been so long since I edited code it may be something else???
oort
If you added or removed items from the area, infinite, and ambient lights that may cause the problem you have. Maybe check the "split_list" code??? If you removed one item from infinite light then 21 would change to 20. It has been so long since I edited code it may be something else???
oort
Quote:%% Point
light_result([{?KEY(type),pointlight}|_]=Ps) ->
split_list(Ps, 4);
light_result([{?KEY(type),spherelight}|_]=Ps) ->
split_list(Ps, 4);
%% Spot
light_result([{?KEY(type),spotlight}|_]=Ps) ->
split_list(Ps, 8 );
light_result([{?KEY(type),spot_ies}|_]=Ps) ->
split_list(Ps, 8 );
%% Infinite
light_result([{?KEY(type),sunlight}|_]=Ps) ->
split_list(Ps, 21);
light_result([{?KEY(type),directional}|_]=Ps) ->
split_list(Ps, 21);
light_result([_,{?KEY(background),_}|_]=Ps) ->
split_list(Ps, 21);
%% Area
light_result([_,{?KEY(arealight_samples),_}|_]=Ps) ->
split_list(Ps, 2);
%% Ambient
light_result([{?KEY(type),hemilight}|_]=Ps) ->
split_list(Ps, 24);
light_result([{?KEY(type),pathlight}|_]=Ps) ->
split_list(Ps, 24);
light_result([{?KEY(type),globalphotonlight}|_]=Ps) ->
split_list(Ps, 24);
light_result(Ps) ->