Commit cbf5e215 authored by sumpfralle's avatar sumpfralle

replace "load_model" function calls by directly appending the new model to the queue


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1174 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 7ed99e24
......@@ -169,7 +169,7 @@ class Clipboard(pycam.Plugins.PluginBase):
callback=progress.update)
if model:
self.log.info("Loaded a model from clipboard")
self.core.get("load_model")(model)
self.core.get("models").append(model)
else:
self.log.warn("Failed to load a model from clipboard")
else:
......
......@@ -176,7 +176,7 @@ class Fonts(pycam.Plugins.PluginBase):
return None
def import_from_font_dialog(self, widget=None):
self.core.get("load_model")(self.get_font_dialog_text_rendered())
self.core.get("models").append(self.get_font_dialog_text_rendered())
self.toggle_font_dialog_window()
def export_from_font_dialog(self, widget=None):
......
......@@ -119,7 +119,7 @@ class ModelExtrusion(pycam.Plugins.PluginBase):
new_model = model.extrude(stepping=grid_size, func=func,
callback=progress.update)
if new_model:
self.core.get("load_model")(new_model)
self.core.get("models").append(new_model)
try:
# add the name of the original model to the new name
original_name = model_manager.get_attr(model,
......
......@@ -90,7 +90,7 @@ class ModelProjection(pycam.Plugins.PluginBase):
new_model = model.get_waterline_contour(plane,
callback=progress.update)
if new_model:
self.core.get("load_model")(new_model)
self.core.get("models").append(new_model)
model_manager = self.core.get("models")
try:
# add the name of the original model to the new name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment