Call some CanvasItem property setters only if needed
Call some CanvasItem property setters only if needed

The CanvasItem property setters `set_modulate`, `set_self_modulate`
and `set_light_mask` have some side effects that don't need to be run
if the value hasn't changed.

This closes #31777.

MarianoGnu/godot,pkowal1982/godot,Paulloz/godot,guilhermefelipecgs/godot,Faless/godot,Paulloz/godot,vkbsb/godot,Valentactive/godot,MarianoGnu/godot,guilhermefelipecgs/godot,firefly2442/godot,godotengine/godot,Valentactive/godot,Faless/godot,sanikoyes/godot,ex/godot,ex/godot,firefly2442/godot,BastiaanOlij/godot,firefly2442/godot,Valentactive/godot,DmitriySalnikov/godot,Paulloz/godot,firefly2442/godot,DmitriySalnikov/godot,ex/godot,josempans/godot,Paulloz/godot,BastiaanOlij/godot,josempans/godot,vkbsb/godot,DmitriySalnikov/godot,godotengine/godot,ex/godot,ZuBsPaCe/godot,ex/godot,Shockblast/godot,ex/godot,josempans/godot,honix/godot,MarianoGnu/godot,godotengine/godot,BastiaanOlij/godot,vnen/godot,akien-mga/godot,MarianoGnu/godot,akien-mga/godot,pkowal1982/godot,Faless/godot,vnen/godot,MarianoGnu/godot,MarianoGnu/godot,Valentactive/godot,Zylann/godot,josempans/godot,josempans/godot,MarianoGnu/godot,Faless/godot,akien-mga/godot,ZuBsPaCe/godot,Shockblast/godot,honix/godot,Zylann/godot,guilhermefelipecgs/godot,firefly2442/godot,Faless/godot,guilhermefelipecgs/godot,DmitriySalnikov/godot,firefly2442/godot,ZuBsPaCe/godot,vkbsb/godot,Faless/godot,josempans/godot,ZuBsPaCe/godot,sanikoyes/godot,sanikoyes/godot,vnen/godot,Paulloz/godot,Valentactive/godot,sanikoyes/godot,ZuBsPaCe/godot,josempans/godot,Zylann/godot,vkbsb/godot,vkbsb/godot,akien-mga/godot,godotengine/godot,vkbsb/godot,firefly2442/godot,DmitriySalnikov/godot,vnen/godot,vnen/godot,BastiaanOlij/godot,guilhermefelipecgs/godot,josempans/godot,Faless/godot,pkowal1982/godot,Valentactive/godot,DmitriySalnikov/godot,Shockblast/godot,Zylann/godot,godotengine/godot,pkowal1982/godot,pkowal1982/godot,pkowal1982/godot,Zylann/godot,Valentactive/godot,BastiaanOlij/godot,sanikoyes/godot,honix/godot,ex/godot,sanikoyes/godot,akien-mga/godot,vkbsb/godot,vnen/godot,honix/godot,ex/godot,guilhermefelipecgs/godot,Valentactive/godot,Zylann/godot,akien-mga/godot,pkowal1982/godot,MarianoGnu/godot,Faless/godot,DmitriySalnikov/godot,firefly2442/godot,guilhermefelipecgs/godot,Shockblast/godot,Shockblast/godot,Shockblast/godot,ZuBsPaCe/godot,ZuBsPaCe/godot,akien-mga/godot,honix/godot,guilhermefelipecgs/godot,Paulloz/godot,akien-mga/godot,sanikoyes/godot,Zylann/godot,Paulloz/godot,BastiaanOlij/godot,vkbsb/godot,honix/godot,Shockblast/godot,godotengine/godot,sanikoyes/godot,Shockblast/godot,BastiaanOlij/godot,vnen/godot,ZuBsPaCe/godot,pkowal1982/godot,godotengine/godot,godotengine/godot,BastiaanOlij/godot,vnen/godot,Zylann/godot