diff options
author | ThaHobbyist | 2025-01-20 17:21:34 +0530 |
---|---|---|
committer | ThaHobbyist | 2025-01-20 17:21:34 +0530 |
commit | 32b8bff86c697d9a549b1a7758d45fecde309226 (patch) | |
tree | 9948f656bfc57d3822b65fcd15367d664afe0d68 | |
parent | 3ef6586089844fcf5be7670d88db95dffd37d632 (diff) | |
download | venturial-32b8bff86c697d9a549b1a7758d45fecde309226.tar.gz venturial-32b8bff86c697d9a549b1a7758d45fecde309226.tar.bz2 venturial-32b8bff86c697d9a549b1a7758d45fecde309226.zip |
Fixed Boundary Visualisation
-rwxr-xr-x | lib/update_methods.py | 9 | ||||
-rwxr-xr-x | models/run_panel_operators.py | 4 | ||||
-rwxr-xr-x | models/visualizer_operators.py | 2 |
3 files changed, 10 insertions, 5 deletions
diff --git a/lib/update_methods.py b/lib/update_methods.py index 832f83d..da73e78 100755 --- a/lib/update_methods.py +++ b/lib/update_methods.py @@ -40,6 +40,15 @@ def update_face_mode(self, context): me.update() else: + bpy.ops.mesh.select_mode(use_extend=False, use_expand=False, type='FACE', action='TOGGLE') + obj = context.edit_object + me = obj.data + bm = bmesh.from_edit_mesh(me) + + for f in bm.faces: + f.select = True + bm.select_flush_mode() + me.update() bpy.ops.object.mode_set(mode = 'OBJECT') diff --git a/models/run_panel_operators.py b/models/run_panel_operators.py index d219bcb..91e92b6 100755 --- a/models/run_panel_operators.py +++ b/models/run_panel_operators.py @@ -258,10 +258,6 @@ class VNT_OT_fill_dict_file(Operator): vert_index.append(bmdict["vertices"].index(list(edge.vc[0].vert_loc))) vert_index.append(bmdict["vertices"].index(list(edge.vc[2].vert_loc))) - # f"{context.scene.ecustom[context.scene.ecustom_index].name}0{index+1}" - # ob = bpy.data.objects[sr] - # layout.prop(ob, 'location') - e_verts = [] length = len(edge.vert_collection) for i in range(length): diff --git a/models/visualizer_operators.py b/models/visualizer_operators.py index 24b40dc..2bf9d8d 100755 --- a/models/visualizer_operators.py +++ b/models/visualizer_operators.py @@ -326,7 +326,7 @@ class VNT_OT_boundary_data_control(Operator): # cs = context.scene vertex_props = self.get_vertex_properties(geo) - + # print(vertex_props) res = [] for item in cs.fcustom: |