summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThaHobbyist2025-01-22 14:32:42 +0530
committerThaHobbyist2025-01-22 14:32:42 +0530
commitc111e5c08597207bba12f3cb1b44951228b36237 (patch)
tree09b4040f8e51848c3fd3fb2404c6b2cddd6bcacb
parent32b8bff86c697d9a549b1a7758d45fecde309226 (diff)
downloadventurial-c111e5c08597207bba12f3cb1b44951228b36237.tar.gz
venturial-c111e5c08597207bba12f3cb1b44951228b36237.tar.bz2
venturial-c111e5c08597207bba12f3cb1b44951228b36237.zip
Fixed coordinates of new vertex
-rw-r--r--models/edges_panel_operators.py8
-rwxr-xr-xviews/mainpanel/view.py10
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")