From c111e5c08597207bba12f3cb1b44951228b36237 Mon Sep 17 00:00:00 2001 From: ThaHobbyist Date: Wed, 22 Jan 2025 14:32:42 +0530 Subject: Fixed coordinates of new vertex --- models/edges_panel_operators.py | 8 ++++---- views/mainpanel/view.py | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/models/edges_panel_operators.py b/models/edges_panel_operators.py index 02632bd..67fc40e 100644 --- a/models/edges_panel_operators.py +++ b/models/edges_panel_operators.py @@ -116,12 +116,12 @@ class VNT_OT_new_vert(Operator): self.curr_edge.vc[0].vert_loc=x self.curr_edge.vc[2].vert_loc=y - # coord = [None, None, None] + coord = [None, None, None] - # for i in range(3): - # coord[i] = (x[i] + y[i])/1.5 + for i in range(3): + coord[i] = (x[i] + y[i])/1.5 - coord = [cs.vertx, cs.verty, cs.vertz] + # coord = [cs.vertx, cs.verty, cs.vertz] self.curr_edge.vert_collection.add() self.curr_edge.vert_collection[0].vert_loc=coord diff --git a/views/mainpanel/view.py b/views/mainpanel/view.py index a3660ad..b1363ab 100755 --- a/views/mainpanel/view.py +++ b/views/mainpanel/view.py @@ -251,11 +251,11 @@ class layout_controller: row2 = layout.row() row2.operator('vnt.new_vert') row2.operator('vnt.remove_vert') - row3 = layout.row(align=True) - row3.label(text="Vertex Coordinates") - row3.prop(cs, "vertx") - row3.prop(cs, "verty") - row3.prop(cs, "vertz") + # row3 = layout.row(align=True) + # row3.label(text="Vertex Coordinates") + # row3.prop(cs, "vertx") + # row3.prop(cs, "verty") + # row3.prop(cs, "vertz") if len(ec): layout.prop(ec[cs.ecustom_index], "color") -- cgit