Commit a3dfd9e6 authored by zmoelnig's avatar zmoelnig
Browse files

const_cast<> because Pd needs them

git-svn-id: https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/trunk/Gem@3102 49b2a0ca-c541-4d49-a7ef-d785e4371512
parent 804bff13
......@@ -160,7 +160,7 @@ void model :: openMess(t_symbol *filename)
cleanModel();
char buf[MAXPDSTRING];
canvas_makefilename(getCanvas(), filename->s_name, buf, MAXPDSTRING);
canvas_makefilename(const_cast<t_canvas*>(getCanvas()), filename->s_name, buf, MAXPDSTRING);
// read the object in
m_model = glmReadOBJ(buf);
if (!m_model){
......
......@@ -173,7 +173,7 @@ void multimodel :: openMess(t_symbol *filename, int baseModel, int topModel, int
int realNum = baseModel;
char bufName[MAXPDSTRING];
canvas_makefilename(getCanvas(), preName, bufName, MAXPDSTRING);
canvas_makefilename(const_cast<t_canvas*>(getCanvas()), preName, bufName, MAXPDSTRING);
for (i = 0; i < m_numModels; i++, realNum += skipRate) {
char newName[256];
......
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