Skip to content

Commit de901fb

Browse files
committed
add-on updated fro Blender 5.0
1 parent d77d7f3 commit de901fb

3 files changed

Lines changed: 26 additions & 13 deletions

File tree

Readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ which is convenient when useing the vertex colors as id-maps.
1717

1818
## TLDR;
1919

20-
- works on Blender 4.4 (and likely on 4.5 but not tested)
20+
- works on Blender 5.0
21+
22+
- the older release [20250816090946](https://github.com/varkenvarken/IDMapper/releases/tag/20250816090946) works on Blender 4.4 (and likely on 4.5 but not tested)
2123

2224
- full documentation in the [docs folder](/docs/)
2325

code/idmapper/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
bl_info = {
2323
"name": "IDMapper",
2424
"author": "Michel Anders (varkenvarken)",
25-
"version": (0, 0, 20250816102007),
26-
"blender": (4, 4, 0),
25+
"version": (0, 0, 20251120102514),
26+
"blender": (5, 0, 0),
2727
"location": "View3D > Vertex Paint > Paint",
2828
"description": "Create an idmap as a vertex color layer, grouping related faces by color",
2929
"warning": "",
@@ -920,7 +920,7 @@ def set_color(bm, bvh, context, event, color, restrict, restriction_color):
920920
rv3d = context.region_data
921921
coord = event.mouse_region_x, event.mouse_region_y
922922
radius = (
923-
context.tool_settings.unified_paint_settings.size
923+
context.tool_settings.vertex_paint.brush.size
924924
) # context.tool_settings.vertex_paint.brush.size
925925
radius *= radius
926926

@@ -1362,7 +1362,7 @@ def color_set(n):
13621362

13631363
blf.size(0, 10)
13641364

1365-
top = 10 + 12 * len(paint_helptext)
1365+
top = 100 + 12 * len(paint_helptext)
13661366
ph1 = [ht.split("\t")[0] for ht in paint_helptext]
13671367
w1, _ = blf.dimensions(0, max(ph1, key=len))
13681368
ph2 = [ht.split("\t")[1] for ht in paint_helptext]
@@ -1394,7 +1394,7 @@ def cursor_handler(self, context, shortcut):
13941394
width = gpu.state.line_width_get()
13951395
gpu.state.line_width_set(1)
13961396
r = (
1397-
context.tool_settings.unified_paint_settings.size
1397+
context.tool_settings.vertex_paint.brush.size
13981398
) # context.tool_settings.vertex_paint.brush.size
13991399

14001400
if (
@@ -1671,20 +1671,20 @@ def modal(self, context, event):
16711671
self.original_color,
16721672
)
16731673
elif event.type == "WHEELUPMOUSE":
1674-
context.tool_settings.unified_paint_settings.size += 1
1674+
context.tool_settings.vertex_paint.brush.size += 1
16751675
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
16781678

16791679
elif self.mode == "CURSORRESIZE": # Mouse was pressed
16801680
if event.type == "F" and event.value == "RELEASE":
16811681
self.mode = None
16821682
self._set_cursor(context, self.mode)
16831683
elif event.type == "WHEELUPMOUSE":
1684-
context.tool_settings.unified_paint_settings.size += 1
1684+
context.tool_settings.vertex_paint.brush.size += 1
16851685
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
16881688
except:
16891689
self.bm.free()
16901690
self._set_cursor(context, None)

docs/index.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,18 @@ <h1 class="c1" id="h.gkar04vyyu6"><span class="c14">Changelog</span></h1>
14091409
<p class="c12"><span class="c4">20250816090946</span></p>
14101410
</td>
14111411
<td class="c15" colspan="1" rowspan="1">
1412-
<p class="c12 c22"><span class="c4">Free version</span></p>
1412+
<p class="c12 c22"><span class="c4">Free version, for Blender 4.x</span></p>
1413+
</td>
1414+
</tr>
1415+
<tr class="c25">
1416+
<td class="c11" colspan="1" rowspan="1">
1417+
<p class="c12"><span class="c4">20 November 2025</span></p>
1418+
</td>
1419+
<td class="c34" colspan="1" rowspan="1">
1420+
<p class="c12"><span class="c4">20251120102514</span></p>
1421+
</td>
1422+
<td class="c15" colspan="1" rowspan="1">
1423+
<p class="c12 c22"><span class="c4">Version for Blender 5.0</span></p>
14131424
</td>
14141425
</tr>
14151426
</table>

0 commit comments

Comments
 (0)