1 Commits

Author SHA1 Message Date
jdegenstein
524a8dd6fd Change right click and drag to pan
Change right click and drag to pan (same as middle click and drag)
2023-02-02 15:25:27 -06:00
4 changed files with 3 additions and 10 deletions

View File

@@ -4,8 +4,6 @@ This is a fork of [jmwright's fork](https://github.com/jmwright/CQ-editor) of [C
This fork also contains additional changes to the `show_object` function in CQ-editor that make it easier to display and export build123d objects and object lists.
Running into issues? Please click here to join the [***CadQuery, CQ-Editor, and build123d Discord***](https://discord.com/invite/Bj9AQPsCfx)
![image](https://user-images.githubusercontent.com/16868537/191054760-a2cac297-3488-48d4-b9f6-52747dffcce3.png)
[![Build status](https://ci.appveyor.com/api/projects/status/g98rs7la393mgy91/branch/master?svg=true)](https://ci.appveyor.com/project/adam-urbanczyk/cq-editor/branch/master)
@@ -46,7 +44,6 @@ Development builds are also available, but can be unstable and should be used at
```
pip install git+https://github.com/jdegenstein/jmwright-CQ-Editor
pip install --pre git+https://github.com/cadquery/cadquery
pip install git+https://github.com/gumyr/build123d
```
## Usage

View File

@@ -1,10 +1,6 @@
import sys
import asyncio
import argparse
if sys.platform == 'win32':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
from PyQt5.QtWidgets import QApplication
NAME = 'CQ-editor'

View File

@@ -241,7 +241,7 @@ class Debugger(QObject,ComponentMixin):
@pyqtSlot(bool)
def render(self):
seed(59798267586177) #reset the seed every time render is called (preserves colors run to run)
seed(371353) #reset the seed every time render is called (preserves colors run to run)
if self.preferences['Reload CQ']:
reload_cq()

View File

@@ -95,8 +95,8 @@ class OCCTWidget(QWidget):
self.old_pos.y() - y, theToStart=True)
elif event.buttons() == Qt.RightButton:
self.view.ZoomAtPoint(self.old_pos.x(), y,
x, self.old_pos.y())
self.view.Pan(x - self.old_pos.x(),
self.old_pos.y() - y, theToStart=True)
self.old_pos = pos