forked from blender/blender
Add possibility to render USD file for testing purposes #49
@ -9,9 +9,9 @@
|
||||
#include <pxr/imaging/hd/engine.h>
|
||||
#include <pxr/imaging/hd/pluginRenderDelegateUniqueHandle.h>
|
||||
#include <pxr/imaging/hdx/freeCameraSceneDelegate.h>
|
||||
#include <pxr/usdImaging/usdImaging/delegate.h>
|
||||
#include <pxr/usd/usd/stage.h>
|
||||
#include <pxr/imaging/hgi/hgi.h>
|
||||
#include <pxr/usd/usd/stage.h>
|
||||
#include <pxr/usdImaging/usdImaging/delegate.h>
|
||||
|
||||
#include "RE_engine.h"
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
|
||||
#include <pxr/base/plug/plugin.h>
|
||||
#include <pxr/base/plug/registry.h>
|
||||
#include <pxr/usdImaging/usdImagingGL/engine.h>
|
||||
#include <pxr/usd/usd/stage.h>
|
||||
#include <pxr/usdImaging/usdImagingGL/engine.h>
|
||||
|
||||
#include "BKE_appdir.h"
|
||||
#include "BLI_fileops.h"
|
||||
@ -99,21 +99,6 @@ static PyObject *get_render_plugins_func(PyObject * /*self*/, PyObject *args)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static PyObject *test_func(PyObject * /*self*/, PyObject *args)
|
||||
{
|
||||
PyObject *pystage;
|
||||
if (!PyArg_ParseTuple(args, "O", &pystage)) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
boost::python::extract<pxr::UsdStageRefPtr> e(pystage);
|
||||
pxr::UsdStagePtr stage = e();
|
||||
std::string str;
|
||||
stage->ExportToString(&str);
|
||||
printf("%s", str.c_str());
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
static PyObject *engine_create_func(PyObject * /*self*/, PyObject *args)
|
||||
{
|
||||
PyObject *pyengine;
|
||||
@ -291,7 +276,6 @@ static PyMethodDef methods[] = {
|
||||
{"init", init_func, METH_VARARGS, ""},
|
||||
{"register_plugins", register_plugins_func, METH_VARARGS, ""},
|
||||
{"get_render_plugins", get_render_plugins_func, METH_VARARGS, ""},
|
||||
{"test", test_func, METH_VARARGS, ""},
|
||||
|
||||
{"engine_create", engine_create_func, METH_VARARGS, ""},
|
||||
{"engine_free", engine_free_func, METH_VARARGS, ""},
|
||||
|
Loading…
Reference in New Issue
Block a user