Fix typos, fix wronng paths to resources
This commit is contained in:
parent
e67a6e518c
commit
483131e628
|
@ -1756,7 +1756,7 @@ void PropertyMaterial::setSpecularColor(const Color& col)
|
|||
hasSetValue();
|
||||
}
|
||||
|
||||
void PropertyMaterial::setEmmisiveColor(const Color& col)
|
||||
void PropertyMaterial::setEmissiveColor(const Color& col)
|
||||
{
|
||||
aboutToSetValue();
|
||||
_cMat.emissiveColor = col;
|
||||
|
|
|
@ -723,7 +723,7 @@ public:
|
|||
void setAmbientColor(const Color& col);
|
||||
void setDiffuseColor(const Color& col);
|
||||
void setSpecularColor(const Color& col);
|
||||
void setEmmisiveColor(const Color& col);
|
||||
void setEmissiveColor(const Color& col);
|
||||
void setShininess(float);
|
||||
void setTransparency(float);
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
# include <TopoDS_Solid.hxx>
|
||||
# include <TopoDS_Compound.hxx>
|
||||
# include <TopExp_Explorer.hxx>
|
||||
# include <sstream>
|
||||
#endif
|
||||
|
||||
#include <Handle_XSControl_WorkSession.hxx>
|
||||
|
@ -89,9 +90,10 @@ int Part::ImportStepParts(App::Document *pcDoc, const char* Name)
|
|||
TopoDS_Shape aShape;
|
||||
Base::FileInfo fi(Name);
|
||||
|
||||
if (!fi.isReadable()) {
|
||||
Base::Console().Log("ImportStep() not able to open %s!\n",Name);
|
||||
throw Base::Exception("Cannot open STEP file");
|
||||
if (!fi.exists()) {
|
||||
std::stringstream str;
|
||||
str << "File '" << Name << "' does not exist!";
|
||||
throw Base::Exception(str.str().c_str());
|
||||
}
|
||||
|
||||
if (aReader.ReadFile((Standard_CString)Name) != IFSelect_RetDone) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import FreeCAD,FreeCADGui
|
||||
FreeCADGui.activateWorkbench("DrawingWorkbench")
|
||||
FreeCAD.open(FreeCAD.getResourceDir()+"data/examples/DrawingExample.FCStd")
|
||||
FreeCAD.open(FreeCAD.getResourceDir()+"examples/DrawingExample.FCStd")
|
||||
FreeCADGui.SendMsgToActiveView("ViewFit")
|
||||
FreeCADGui.activeDocument().activeView().viewAxometric()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import FreeCAD,FreeCADGui
|
||||
FreeCAD.open(FreeCAD.getResourceDir()+"data/examples/PartDesignExample.FCStd")
|
||||
FreeCAD.open(FreeCAD.getResourceDir()+"examples/PartDesignExample.FCStd")
|
||||
FreeCADGui.SendMsgToActiveView("ViewFit")
|
||||
FreeCADGui.activeDocument().activeView().viewAxometric()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import FreeCAD,FreeCADGui
|
||||
FreeCAD.open(FreeCAD.getResourceDir()+"data/examples/RobotExample.FCStd")
|
||||
FreeCAD.open(FreeCAD.getResourceDir()+"examples/RobotExample.FCStd")
|
||||
FreeCADGui.SendMsgToActiveView("ViewFit")
|
||||
FreeCADGui.activeDocument().activeView().viewAxometric()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import FreeCAD,FreeCADGui,Part
|
||||
Part.open(FreeCAD.getResourceDir()+"data/examples/Schenkel.stp")
|
||||
Part.open(FreeCAD.getResourceDir()+"examples/Schenkel.stp")
|
||||
FreeCADGui.SendMsgToActiveView("ViewFit")
|
||||
Gui.activeDocument().activeView().viewAxometric()
|
||||
|
|
Loading…
Reference in New Issue
Block a user