|
22 | 22 | bl_info = { |
23 | 23 | "name": "IDMapper", |
24 | 24 | "author": "Michel Anders (varkenvarken)", |
25 | | - "version": (0, 0, 20250816102007), |
26 | | - "blender": (4, 4, 0), |
| 25 | + "version": (0, 0, 20251120102514), |
| 26 | + "blender": (5, 0, 0), |
27 | 27 | "location": "View3D > Vertex Paint > Paint", |
28 | 28 | "description": "Create an idmap as a vertex color layer, grouping related faces by color", |
29 | 29 | "warning": "", |
@@ -920,7 +920,7 @@ def set_color(bm, bvh, context, event, color, restrict, restriction_color): |
920 | 920 | rv3d = context.region_data |
921 | 921 | coord = event.mouse_region_x, event.mouse_region_y |
922 | 922 | radius = ( |
923 | | - context.tool_settings.unified_paint_settings.size |
| 923 | + context.tool_settings.vertex_paint.brush.size |
924 | 924 | ) # context.tool_settings.vertex_paint.brush.size |
925 | 925 | radius *= radius |
926 | 926 |
|
@@ -1362,7 +1362,7 @@ def color_set(n): |
1362 | 1362 |
|
1363 | 1363 | blf.size(0, 10) |
1364 | 1364 |
|
1365 | | -top = 10 + 12 * len(paint_helptext) |
| 1365 | +top = 100 + 12 * len(paint_helptext) |
1366 | 1366 | ph1 = [ht.split("\t")[0] for ht in paint_helptext] |
1367 | 1367 | w1, _ = blf.dimensions(0, max(ph1, key=len)) |
1368 | 1368 | ph2 = [ht.split("\t")[1] for ht in paint_helptext] |
@@ -1394,7 +1394,7 @@ def cursor_handler(self, context, shortcut): |
1394 | 1394 | width = gpu.state.line_width_get() |
1395 | 1395 | gpu.state.line_width_set(1) |
1396 | 1396 | r = ( |
1397 | | - context.tool_settings.unified_paint_settings.size |
| 1397 | + context.tool_settings.vertex_paint.brush.size |
1398 | 1398 | ) # context.tool_settings.vertex_paint.brush.size |
1399 | 1399 |
|
1400 | 1400 | if ( |
@@ -1671,20 +1671,20 @@ def modal(self, context, event): |
1671 | 1671 | self.original_color, |
1672 | 1672 | ) |
1673 | 1673 | elif event.type == "WHEELUPMOUSE": |
1674 | | - context.tool_settings.unified_paint_settings.size += 1 |
| 1674 | + context.tool_settings.vertex_paint.brush.size += 1 |
1675 | 1675 | elif event.type == "WHEELDOWNMOUSE": |
1676 | | - if context.tool_settings.unified_paint_settings.size > 1: |
1677 | | - context.tool_settings.unified_paint_settings.size -= 1 |
| 1676 | + if context.tool_settings.vertex_paint.brush.size > 1: |
| 1677 | + context.tool_settings.vertex_paint.brush.size -= 1 |
1678 | 1678 |
|
1679 | 1679 | elif self.mode == "CURSORRESIZE": # Mouse was pressed |
1680 | 1680 | if event.type == "F" and event.value == "RELEASE": |
1681 | 1681 | self.mode = None |
1682 | 1682 | self._set_cursor(context, self.mode) |
1683 | 1683 | elif event.type == "WHEELUPMOUSE": |
1684 | | - context.tool_settings.unified_paint_settings.size += 1 |
| 1684 | + context.tool_settings.vertex_paint.brush.size += 1 |
1685 | 1685 | elif event.type == "WHEELDOWNMOUSE": |
1686 | | - if context.tool_settings.unified_paint_settings.size > 1: |
1687 | | - context.tool_settings.unified_paint_settings.size -= 1 |
| 1686 | + if context.tool_settings.vertex_paint.brush.size > 1: |
| 1687 | + context.tool_settings.vertex_paint.brush.size -= 1 |
1688 | 1688 | except: |
1689 | 1689 | self.bm.free() |
1690 | 1690 | self._set_cursor(context, None) |
|
0 commit comments