Raytracing: Final cleanup of Luxrender stuff
This commit is contained in:
@@ -238,19 +238,6 @@ copyResource(PyObject *self, PyObject *args)
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
/// rescales a lux matrix
|
||||
static PyObject *
|
||||
scaleLuxMatrix(PyObject *self, PyObject *args)
|
||||
{
|
||||
float factor;
|
||||
const char *mat;
|
||||
if (! PyArg_ParseTuple(args, "sf", &mat, &factor))
|
||||
return NULL;
|
||||
std::string result, luxmatrix(mat);
|
||||
result = LuxTools::rescaleMatrix(luxmatrix, factor);
|
||||
return Py::new_reference_to(Py::String(result));
|
||||
}
|
||||
|
||||
/* registration table */
|
||||
struct PyMethodDef Raytracing_methods[] = {
|
||||
{"writeProjectFile", writeProjectFile, 1},
|
||||
@@ -262,6 +249,5 @@ struct PyMethodDef Raytracing_methods[] = {
|
||||
{"writeDataFile", writeDataFile , 1},
|
||||
{"writeCameraFile", writeCameraFile , 1},
|
||||
{"copyResource", copyResource , 1},
|
||||
{"scaleLuxMatrix", scaleLuxMatrix , 1},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user