2023-05-31 16:19:06 +02:00
|
|
|
/* SPDX-FileCopyrightText: 2021 Tangent Animation. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2021-08-03 11:55:53 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2024-02-06 13:03:28 +01:00
|
|
|
#include "usd.hh"
|
2024-02-05 19:02:00 +01:00
|
|
|
#include "usd_reader_xform.hh"
|
2021-08-03 11:55:53 +02:00
|
|
|
|
2024-02-28 22:08:04 +01:00
|
|
|
struct Main;
|
|
|
|
|
|
2021-08-03 11:55:53 +02:00
|
|
|
namespace blender::io::usd {
|
|
|
|
|
|
|
|
|
|
class USDLightReader : public USDXformReader {
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
USDLightReader(const pxr::UsdPrim &prim,
|
|
|
|
|
const USDImportParams &import_params,
|
|
|
|
|
const ImportSettings &settings)
|
|
|
|
|
: USDXformReader(prim, import_params, settings)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void create_object(Main *bmain, double motionSampleTime) override;
|
|
|
|
|
|
|
|
|
|
void read_object_data(Main *bmain, double motionSampleTime) override;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace blender::io::usd
|