From 9ee5329cfc175c7a61ccbd346cd21928667ce56a Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 5 Dec 2023 20:58:39 -0500 Subject: [PATCH] Fix #386. The helpers added in #367 are great, but they don't quite match up with what's being done here. Maybe that's why I neglected to convert this over to the new thing. Anywho, just use the closest newflangled match. --- korman/operators/op_mesh.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/korman/operators/op_mesh.py b/korman/operators/op_mesh.py index ecf60df..e5e0c4b 100644 --- a/korman/operators/op_mesh.py +++ b/korman/operators/op_mesh.py @@ -587,7 +587,8 @@ class PlasmaAddLinkingBookMeshOperator(PlasmaMeshOperator, bpy.types.Operator): # Create Clickable Region clk_rgn_name = "{}_ClkRegion".format(self.name_stem) clk_rgn_size = 6.0 - with utils.bmesh_object(clk_rgn_name) as (clk_rgn, bm): + clk_rgn = utils.BMeshObject(clk_rgn_name, False) + with clk_rgn as bm: bmesh.ops.create_cube(bm, size=(1.0), matrix=(mathutils.Matrix.Scale(clk_rgn_size, 4))) clk_rgn.hide_render = True @@ -606,7 +607,7 @@ class PlasmaAddLinkingBookMeshOperator(PlasmaMeshOperator, bpy.types.Operator): panel_root.select = True lbmod = panel_root.plasma_modifiers.linkingbookmod lbmod.enabled = True - lbmod.clickable_region = clk_rgn + lbmod.clickable_region = clk_rgn.object lbmod.seek_point = seek_point lbmod.anim_type = self.link_anim_type