Merge branch 'develop' of https://gitee.com/fusenpack/fusenapi into develop
This commit is contained in:
commit
95cd86d103
|
@ -66,10 +66,15 @@ func (w *wsConnectItem) consumeRenderImageData() {
|
||||||
case <-w.closeChan: //已关闭
|
case <-w.closeChan: //已关闭
|
||||||
return
|
return
|
||||||
case data := <-w.extendRenderProperty.renderChan: //消费数据
|
case data := <-w.extendRenderProperty.renderChan: //消费数据
|
||||||
//属性相同则发送渲染,不同则抛弃
|
//属性不同则不发送渲染
|
||||||
if data.RenderData.TemplateTag == w.extendRenderProperty.templateTag && data.RenderData.TemplateTagColor.SelectedColorIndex == w.extendRenderProperty.colorSelectedIndex {
|
if data.RenderData.TemplateTag != w.extendRenderProperty.templateTag {
|
||||||
w.renderImage(data)
|
continue
|
||||||
}
|
}
|
||||||
|
//属性不同则不发送渲染
|
||||||
|
if data.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.colorSelectedIndex {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
w.renderImage(data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user