[Bf-extensions-cvs] [b38939f1] blender2.8: Snap Utilities Line: remove hack to clear the header text
mano-wii
noreply at git.blender.org
Tue Oct 30 13:01:12 CET 2018
Commit: b38939f161cc4c4e2039f006fe6b9e46d518d3fa
Author: mano-wii
Date: Tue Oct 30 09:01:01 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBAb38939f161cc4c4e2039f006fe6b9e46d518d3fa
Snap Utilities Line: remove hack to clear the header text
===================================================================
M mesh_snap_utilities_line/ops_line.py
===================================================================
diff --git a/mesh_snap_utilities_line/ops_line.py b/mesh_snap_utilities_line/ops_line.py
index 57ed3f19..2fe01ef9 100644
--- a/mesh_snap_utilities_line/ops_line.py
+++ b/mesh_snap_utilities_line/ops_line.py
@@ -39,22 +39,6 @@ if not __package__:
__package__ = "mesh_snap_utilities"
-def Bpy_Area_header_text_clear(area):
- #HACK
- import ctypes
- func = area.header_text_set
- #(int)(&((struct BPy_FunctionRNA *)0)->func) == object.__basicsize__ + 24
- c_func = ctypes.c_void_p.from_address(id(func) + object.__basicsize__ + 24).value
- #(int)(&((struct FunctionRNA *)0)->cont.properties.first) == 24
- c_param = ctypes.c_void_p.from_address(c_func + 24).value
- #(int)(&((struct PropertyRNA *)0)->flag_parameter) == 40
- flag_parameter = ctypes.c_void_p.from_address(c_param + 40)
- previous_value = flag_parameter.value
- flag_parameter.value = 0
- func()
- flag_parameter.value = previous_value
-
-
def get_closest_edge(bm, point, dist):
r_edge = None
for edge in bm.edges:
@@ -392,8 +376,7 @@ class SnapUtilitiesLine(bpy.types.Operator):
del self.list_verts_co
bpy.types.SpaceView3D.draw_handler_remove(self._handle, 'WINDOW')
- Bpy_Area_header_text_clear(context.area)
- # context.area.header_text_set(text=None)
+ context.area.header_text_set(None)
self.sctx.free()
del self.draw_cache
More information about the Bf-extensions-cvs
mailing list