mirror of
https://github.com/jdegenstein/jmwright-CQ-Editor.git
synced 2025-12-22 23:44:26 +01:00
Compare commits
1 Commits
run_and_ma
...
mactrackpa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
524a8dd6fd |
@@ -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.
|
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)
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
[](https://ci.appveyor.com/project/adam-urbanczyk/cq-editor/branch/master)
|
[](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 git+https://github.com/jdegenstein/jmwright-CQ-Editor
|
||||||
pip install --pre git+https://github.com/cadquery/cadquery
|
pip install --pre git+https://github.com/cadquery/cadquery
|
||||||
pip install git+https://github.com/gumyr/build123d
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
import sys
|
import sys
|
||||||
import asyncio
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
if sys.platform == 'win32':
|
|
||||||
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
|
||||||
|
|
||||||
from PyQt5.QtWidgets import QApplication
|
from PyQt5.QtWidgets import QApplication
|
||||||
|
|
||||||
NAME = 'CQ-editor'
|
NAME = 'CQ-editor'
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ class Debugger(QObject,ComponentMixin):
|
|||||||
|
|
||||||
@pyqtSlot(bool)
|
@pyqtSlot(bool)
|
||||||
def render(self):
|
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']:
|
if self.preferences['Reload CQ']:
|
||||||
reload_cq()
|
reload_cq()
|
||||||
|
|
||||||
|
|||||||
@@ -95,8 +95,8 @@ class OCCTWidget(QWidget):
|
|||||||
self.old_pos.y() - y, theToStart=True)
|
self.old_pos.y() - y, theToStart=True)
|
||||||
|
|
||||||
elif event.buttons() == Qt.RightButton:
|
elif event.buttons() == Qt.RightButton:
|
||||||
self.view.ZoomAtPoint(self.old_pos.x(), y,
|
self.view.Pan(x - self.old_pos.x(),
|
||||||
x, self.old_pos.y())
|
self.old_pos.y() - y, theToStart=True)
|
||||||
|
|
||||||
self.old_pos = pos
|
self.old_pos = pos
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user