added support for object-sizing
added support for wall-heights
This commit is contained in:
@@ -41,7 +41,7 @@ public:
|
||||
|
||||
/** get the number of parameters */
|
||||
int getNumParams() const override {
|
||||
return 3;
|
||||
return 4;
|
||||
}
|
||||
|
||||
/** get the description of the idx-th parameter */
|
||||
@@ -50,6 +50,7 @@ public:
|
||||
case 0: return Param("file", ParamType::STRING);
|
||||
case 1: return Param("pos", ParamType::POINT3);
|
||||
case 2: return Param("rot", ParamType::POINT3);
|
||||
case 3: return Param("scale", ParamType::POINT3);
|
||||
default: throw Exception("out of bounds");
|
||||
}
|
||||
}
|
||||
@@ -60,6 +61,7 @@ public:
|
||||
case 0: return fo->file;
|
||||
case 1: return fo->pos;
|
||||
case 2: return fo->rot;
|
||||
case 3: return fo->scale;
|
||||
default: throw Exception("out of bounds");
|
||||
}
|
||||
}
|
||||
@@ -70,6 +72,7 @@ public:
|
||||
case 0: fo->file = val.toString(); break;
|
||||
case 1: fo->pos = val.toPoint3(); break;
|
||||
case 2: fo->rot = val.toPoint3(); break;
|
||||
case 3: fo->scale = val.toPoint3(); break;
|
||||
default: throw Exception("out of bounds");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user