mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Rename Control margin to offset
This commit is contained in:
parent
30d469a5e0
commit
4b8b803931
106 changed files with 1278 additions and 1278 deletions
|
@ -601,10 +601,10 @@ void RendererCanvasRenderRD::_render_item(RD::DrawListID p_draw_list, const Item
|
|||
push_constant.flags |= FLAGS_NINEPACH_DRAW_CENTER;
|
||||
}
|
||||
|
||||
push_constant.ninepatch_margins[0] = np->margin[MARGIN_LEFT];
|
||||
push_constant.ninepatch_margins[1] = np->margin[MARGIN_TOP];
|
||||
push_constant.ninepatch_margins[2] = np->margin[MARGIN_RIGHT];
|
||||
push_constant.ninepatch_margins[3] = np->margin[MARGIN_BOTTOM];
|
||||
push_constant.ninepatch_margins[0] = np->margin[SIDE_LEFT];
|
||||
push_constant.ninepatch_margins[1] = np->margin[SIDE_TOP];
|
||||
push_constant.ninepatch_margins[2] = np->margin[SIDE_RIGHT];
|
||||
push_constant.ninepatch_margins[3] = np->margin[SIDE_BOTTOM];
|
||||
|
||||
RD::get_singleton()->draw_list_set_push_constant(p_draw_list, &push_constant, sizeof(PushConstant));
|
||||
RD::get_singleton()->draw_list_bind_index_array(p_draw_list, shader.quad_index_array);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue