diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-27 09:44:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-07 05:51:26 +0300 |
commit | 4599d5d3c8ae91e958fad44df6d5fb30a2edb680 (patch) | |
tree | 8cef347e90f9242e292353422cd65390297bb90b | |
parent | df720ecf268e80b49db811e98ecb12a16b5c2d70 (diff) |
space_view3d_brush_menus: update for change in master
-rw-r--r-- | space_view3d_brush_menus/texture_menu.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/space_view3d_brush_menus/texture_menu.py b/space_view3d_brush_menus/texture_menu.py index 94484538..f5e0e960 100644 --- a/space_view3d_brush_menus/texture_menu.py +++ b/space_view3d_brush_menus/texture_menu.py @@ -49,12 +49,12 @@ class TextureMenu(Menu): layout.row().prop(tex_slot, "angle", text=utils_core.PIW + "Angle", slider=True) - if tex_slot.tex_paint_map_mode in ('RANDOM', 'VIEW_PLANE') and tex_slot.use_random: + if tex_slot.map_mode in ('RANDOM', 'VIEW_PLANE') and tex_slot.use_random: layout.row().prop(tex_slot, "random_angle", text=utils_core.PIW + "Random Angle", slider=True) # Operator - if tex_slot.tex_paint_map_mode == 'STENCIL': + if tex_slot.map_mode == 'STENCIL': if has_brush.texture and has_brush.texture.type == 'IMAGE': layout.row().operator("brush.stencil_fit_image_aspect") @@ -73,8 +73,8 @@ class TextureMenu(Menu): # Checkboxes if tex_slot: - if tex_slot.tex_paint_map_mode != '3D': - if tex_slot.tex_paint_map_mode in ('RANDOM', 'VIEW_PLANE'): + if tex_slot.map_mode != '3D': + if tex_slot.map_mode in ('RANDOM', 'VIEW_PLANE'): layout.row().prop(tex_slot, "use_rake", toggle=True) layout.row().prop(tex_slot, "use_random", toggle=True) @@ -82,12 +82,12 @@ class TextureMenu(Menu): layout.row().prop(tex_slot, "angle", text=utils_core.PIW + "Angle", slider=True) - if tex_slot.tex_paint_map_mode in ('RANDOM', 'VIEW_PLANE') and tex_slot.use_random: + if tex_slot.map_mode in ('RANDOM', 'VIEW_PLANE') and tex_slot.use_random: layout.row().prop(tex_slot, "random_angle", text=utils_core.PIW + "Random Angle", slider=True) # Operator - if tex_slot.tex_paint_map_mode == 'STENCIL': + if tex_slot.map_mode == 'STENCIL': if has_brush.texture and has_brush.texture.type == 'IMAGE': layout.row().operator("brush.stencil_fit_image_aspect") @@ -110,8 +110,8 @@ class TextureMenu(Menu): # Checkboxes if tex_slot: - if tex_slot.tex_paint_map_mode != '3D': - if tex_slot.tex_paint_map_mode in ('RANDOM', 'VIEW_PLANE'): + if tex_slot.map_mode != '3D': + if tex_slot.map_mode in ('RANDOM', 'VIEW_PLANE'): layout.row().prop(tex_slot, "use_rake", toggle=True) layout.row().prop(tex_slot, "use_random", toggle=True) @@ -119,12 +119,12 @@ class TextureMenu(Menu): layout.row().prop(tex_slot, "angle", text=utils_core.PIW + "Angle", slider=True) - if tex_slot.tex_paint_map_mode in ('RANDOM', 'VIEW_PLANE') and tex_slot.use_random: + if tex_slot.map_mode in ('RANDOM', 'VIEW_PLANE') and tex_slot.use_random: layout.row().prop(tex_slot, "random_angle", text=utils_core.PIW + "Random Angle", slider=True) # Operator - if tex_slot.tex_paint_map_mode == 'STENCIL': + if tex_slot.map_mode == 'STENCIL': if has_brush.texture and has_brush.texture.type == 'IMAGE': layout.row().operator("brush.stencil_fit_image_aspect") @@ -245,11 +245,11 @@ class TextureMapMode(Menu): disable_icon='RADIOBUT_ON' ) elif utils_core.get_mode() == 'VERTEX_PAINT': - path = "tool_settings.vertex_paint.brush.texture_slot.tex_paint_map_mode" + path = "tool_settings.vertex_paint.brush.texture_slot.map_mode" # add the menu items for item in has_brush. \ - texture_slot.bl_rna.properties['tex_paint_map_mode'].enum_items: + texture_slot.bl_rna.properties['map_mode'].enum_items: utils_core.menuprop( layout.row(), item.name, item.identifier, path, icon='RADIOBUT_OFF', @@ -257,11 +257,11 @@ class TextureMapMode(Menu): disable_icon='RADIOBUT_ON' ) else: - path = "tool_settings.image_paint.brush.texture_slot.tex_paint_map_mode" + path = "tool_settings.image_paint.brush.texture_slot.map_mode" # add the menu items for item in has_brush. \ - texture_slot.bl_rna.properties['tex_paint_map_mode'].enum_items: + texture_slot.bl_rna.properties['map_mode'].enum_items: utils_core.menuprop( layout.row(), item.name, item.identifier, path, icon='RADIOBUT_OFF', |