Prechádzať zdrojové kódy

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

Fix `RDPipelineColorBlendState.attachments` setter
Rémi Verschelde 2 rokov pred
rodič
commit
698df41dac
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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 {