ソースを参照

Fix `RDPipelineColorBlendState.attachments` setter

Danil Alexeev 2 年 前
コミット
f2f0375e10
1 ファイル変更1 行追加1 行削除
  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 {