Browse Source

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.
pull/392/head
Adam Johnson 12 months ago
parent
commit
9ee5329cfc
  1. 5
      korman/operators/op_mesh.py

5
korman/operators/op_mesh.py

@ -587,7 +587,8 @@ class PlasmaAddLinkingBookMeshOperator(PlasmaMeshOperator, bpy.types.Operator):
# Create Clickable Region # Create Clickable Region
clk_rgn_name = "{}_ClkRegion".format(self.name_stem) clk_rgn_name = "{}_ClkRegion".format(self.name_stem)
clk_rgn_size = 6.0 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))) bmesh.ops.create_cube(bm, size=(1.0), matrix=(mathutils.Matrix.Scale(clk_rgn_size, 4)))
clk_rgn.hide_render = True clk_rgn.hide_render = True
@ -606,7 +607,7 @@ class PlasmaAddLinkingBookMeshOperator(PlasmaMeshOperator, bpy.types.Operator):
panel_root.select = True panel_root.select = True
lbmod = panel_root.plasma_modifiers.linkingbookmod lbmod = panel_root.plasma_modifiers.linkingbookmod
lbmod.enabled = True lbmod.enabled = True
lbmod.clickable_region = clk_rgn lbmod.clickable_region = clk_rgn.object
lbmod.seek_point = seek_point lbmod.seek_point = seek_point
lbmod.anim_type = self.link_anim_type lbmod.anim_type = self.link_anim_type

Loading…
Cancel
Save