- restored the FlatCAMObj.visible() to a non-threaded default
This commit is contained in:
parent
f5cc8d773f
commit
0244c76605
|
@ -8252,7 +8252,10 @@ The normal flow when working in FlatCAM is the following:</span></p>
|
||||||
"""
|
"""
|
||||||
FlatCAMObj.app = self
|
FlatCAMObj.app = self
|
||||||
ObjectCollection.app = self
|
ObjectCollection.app = self
|
||||||
|
Gerber.app = self
|
||||||
|
Excellon.app = self
|
||||||
|
Geometry.app = self
|
||||||
|
CNCjob.app = self
|
||||||
FCProcess.app = self
|
FCProcess.app = self
|
||||||
FCProcessContainer.app = self
|
FCProcessContainer.app = self
|
||||||
|
|
||||||
|
|
|
@ -199,6 +199,7 @@ class FlatCAMObj(QtCore.QObject):
|
||||||
log.debug("on_name_activate() --> Could not remove the old object name from auto-completer model list")
|
log.debug("on_name_activate() --> Could not remove the old object name from auto-completer model list")
|
||||||
|
|
||||||
self.options["name"] = self.ui.name_entry.get_value()
|
self.options["name"] = self.ui.name_entry.get_value()
|
||||||
|
self.app.collection.update_view()
|
||||||
self.app.inform.emit(_("[success] Name changed from {old} to {new}").format(old=old_name, new=new_name))
|
self.app.inform.emit(_("[success] Name changed from {old} to {new}").format(old=old_name, new=new_name))
|
||||||
|
|
||||||
def on_offset_button_click(self):
|
def on_offset_button_click(self):
|
||||||
|
@ -338,7 +339,7 @@ class FlatCAMObj(QtCore.QObject):
|
||||||
return self.shapes.visible
|
return self.shapes.visible
|
||||||
|
|
||||||
@visible.setter
|
@visible.setter
|
||||||
def visible(self, value):
|
def visible(self, value, threaded=False):
|
||||||
log.debug("FlatCAMObj.visible()")
|
log.debug("FlatCAMObj.visible()")
|
||||||
|
|
||||||
def worker_task(app_obj):
|
def worker_task(app_obj):
|
||||||
|
@ -350,6 +351,9 @@ class FlatCAMObj(QtCore.QObject):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if threaded is False:
|
||||||
|
worker_task(self)
|
||||||
|
else:
|
||||||
self.app.worker_task.emit({'fcn': worker_task, 'params': [self]})
|
self.app.worker_task.emit({'fcn': worker_task, 'params': [self]})
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
|
@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
|
|
||||||
- fixed bug in Gerber parser that made the Gerber files generated by Altium Designer 18 not to be loaded
|
- fixed bug in Gerber parser that made the Gerber files generated by Altium Designer 18 not to be loaded
|
||||||
- fixed bug in Gerber editor - on multiple edits on the same object, the aperture size and dims were continuously multiplied due of the file units not being updated
|
- fixed bug in Gerber editor - on multiple edits on the same object, the aperture size and dims were continuously multiplied due of the file units not being updated
|
||||||
|
- restored the FlatCAMObj.visible() to a non-threaded default
|
||||||
|
|
||||||
11.06.2019
|
11.06.2019
|
||||||
|
|
||||||
|
|
10
camlib.py
10
camlib.py
|
@ -112,9 +112,9 @@ class Geometry(object):
|
||||||
|
|
||||||
self.geo_steps_per_circle = geo_steps_per_circle
|
self.geo_steps_per_circle = geo_steps_per_circle
|
||||||
|
|
||||||
if geo_steps_per_circle is None:
|
# if geo_steps_per_circle is None:
|
||||||
geo_steps_per_circle = int(Geometry.defaults["geo_steps_per_circle"])
|
# geo_steps_per_circle = int(Geometry.defaults["geo_steps_per_circle"])
|
||||||
self.geo_steps_per_circle = geo_steps_per_circle
|
# self.geo_steps_per_circle = geo_steps_per_circle
|
||||||
|
|
||||||
def make_index(self):
|
def make_index(self):
|
||||||
self.flatten()
|
self.flatten()
|
||||||
|
@ -1849,6 +1849,8 @@ class ApertureMacro:
|
||||||
|
|
||||||
class Gerber (Geometry):
|
class Gerber (Geometry):
|
||||||
"""
|
"""
|
||||||
|
Here it is done all the Gerber parsing.
|
||||||
|
|
||||||
**ATTRIBUTES**
|
**ATTRIBUTES**
|
||||||
|
|
||||||
* ``apertures`` (dict): The keys are names/identifiers of each aperture.
|
* ``apertures`` (dict): The keys are names/identifiers of each aperture.
|
||||||
|
@ -3597,6 +3599,8 @@ class Gerber (Geometry):
|
||||||
|
|
||||||
class Excellon(Geometry):
|
class Excellon(Geometry):
|
||||||
"""
|
"""
|
||||||
|
Here it is done all the Excellon parsing.
|
||||||
|
|
||||||
*ATTRIBUTES*
|
*ATTRIBUTES*
|
||||||
|
|
||||||
* ``tools`` (dict): The key is the tool name and the value is
|
* ``tools`` (dict): The key is the tool name and the value is
|
||||||
|
|
Loading…
Reference in New Issue