Skip to content

Commit

Permalink
fixed manual position selection
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed Dec 11, 2023
1 parent c409f48 commit 6a6e2da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scenes/TwoColumnData.gd
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ func update_property_value(callingNode, leftString):
if is_instance_valid(inst):
var originalLocation = Vector2(inst.locationX,inst.locationY)
inst.locationX = clamp(float(callingNode.oLineEditX.text), 0.0, M.xSize*3)
inst.locationY = clamp(float(callingNode.oLineEditY.text), 0.0, M.xSize*3)
inst.locationY = clamp(float(callingNode.oLineEditY.text), 0.0, M.ySize*3)
if callingNode.oLineEditZ.visible == true: # For the sake of ActionPoint
inst.locationZ = clamp(float(callingNode.oLineEditZ.text), 0.0, M.xSize*3)
inst.locationZ = clamp(float(callingNode.oLineEditZ.text), 0.0, 255.0)
oInstances.mirror_adjusted_value(inst, "locationXYZ", originalLocation)
oInspector.set_inspector_subtile(Vector2(inst.locationX,inst.locationY))
return # Exit after handling "Position"
Expand Down

0 comments on commit 6a6e2da

Please sign in to comment.