Răsfoiți Sursa

Merge pull request #81333 from dalexeev/fix-rd-pcbs-attachments-setter

Fix `RDPipelineColorBlendState.attachments` setter
Rémi Verschelde 2 ani în urmă
părinte
comite
698df41dac
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      servers/rendering/rendering_device_binds.h

+ 1 - 1
servers/rendering/rendering_device_binds.h

@@ -696,7 +696,7 @@ public:
 	RD_SETGET(Color, blend_constant)
 	RD_SETGET(Color, blend_constant)
 
 
 	void set_attachments(const TypedArray<RDPipelineColorBlendStateAttachment> &p_attachments) {
 	void set_attachments(const TypedArray<RDPipelineColorBlendStateAttachment> &p_attachments) {
-		attachments.push_back(p_attachments);
+		attachments = p_attachments;
 	}
 	}
 
 
 	TypedArray<RDPipelineColorBlendStateAttachment> get_attachments() const {
 	TypedArray<RDPipelineColorBlendStateAttachment> get_attachments() const {