Skip to content

Commit

Permalink
fix: add edge_bevel and overlay fixes for Blender 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-hm committed Nov 3, 2022
1 parent 3b89d57 commit 2700e23
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bevels/edge_bevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ def invoke(self, context, event):

self.target_object = context.active_object

if not context.active_object.data.use_customdata_edge_bevel:
context.active_object.data.use_customdata_edge_bevel = True
if bpy.app.version < (3, 4, 0):
if not context.active_object.data.use_customdata_edge_bevel:
context.active_object.data.use_customdata_edge_bevel = True

self.take_edges_snapshot(context)

Expand Down
4 changes: 4 additions & 0 deletions lib/overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ def draw_property(cls, property_content, metadata_content, active=False, alt_mod

blf.position(0, cls.overlay_x, cls.overlay_y - ((38 * cls.dpi_scalar) + (cls.line_spacer * cls.line_step)), 0)

if bpy.app.version >= (3, 4, 0):
blf.size(0, 14, cls.dpi)
blf.position(0, cls.overlay_x, cls.overlay_y - ((31 * cls.dpi_scalar) + (cls.line_spacer * cls.line_step)), 0)

if not cls.operator_passthrough and alt_mode:
blf.draw(0, "◑")
else:
Expand Down

0 comments on commit 2700e23

Please sign in to comment.