Core: support to load old project files containing image planes
See forum: https://forum.freecad.org/viewtopic.php?p=670545#p670545
This commit is contained in:
@@ -201,7 +201,7 @@ void FileHandler::openImage()
|
||||
QFileInfo fi;
|
||||
fi.setFile(filename);
|
||||
|
||||
Gui::cmdAppDocumentArgs(doc, "addObject('%s', '%s')", "App::ImagePlane", fi.baseName().toStdString());
|
||||
Gui::cmdAppDocumentArgs(doc, "addObject('%s', '%s')", "Image::ImagePlane", fi.baseName().toStdString());
|
||||
Gui::cmdAppDocumentArgs(doc, "ActiveObject.ImageFile = '%s'", fi.absoluteFilePath().toStdString());
|
||||
Gui::cmdAppDocumentArgs(doc, "ActiveObject.Label = '%s'", fi.baseName().toStdString());
|
||||
Gui::cmdAppDocument(doc, "recompute()");
|
||||
|
||||
Reference in New Issue
Block a user