The sutta says clearly that for a person of wrong view, whatever bodily kamma, verbal kamma, mental kamma he instigates upon that wrong view…(so even when this kamma is moral ), whatever his volitional activity is, (so even moral helpful intentions)….all lead to suffering. Why? because the view is wrong.
One with a materialistic view can live a moral life, doing good to others. Mostly intent on giving, on sharing, helping, doing good. He can be a doctor. Most doctors have probably a materialistic view and not belief in rebirth. Does this mean their intentions and behaviour are immoral? No, ofcourse not.
Just like believing in rebirth does not mean one lives moral. Maybe this view makes that one is Always greedy, only doing good to create good rebirth. Maybe the doctor, while not believing in rebirth, is more altruistisch doing good.
I belief, it is not true that a wrong view Always goes together with bad intentions or kamma. No, most of the time people have good intentions but behind those are bad views. Then the sutta says… the result will be bad because the view is bad.
So, in the end, which result will arise from intentions and deed, depends in the end on the quality of the view, is it wrong or right, and NOT on the quality of intentions.
Siebe