Apply `const` to variables, arguments, and methods. Also includes a few variable shadowing changes that were noticed along the way. All changes should have no user visible effects. Pull Request: https://projects.blender.org/blender/blender/pulls/125873
30 lines
867 B
C++
30 lines
867 B
C++
/* SPDX-FileCopyrightText: 2019 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#pragma once
|
|
|
|
#include "usd_writer_abstract.hh"
|
|
|
|
#include <pxr/usd/usdGeom/xform.h>
|
|
|
|
namespace blender::io::usd {
|
|
|
|
class USDTransformWriter : public USDAbstractWriter {
|
|
private:
|
|
blender::Vector<pxr::UsdGeomXformOp> xformOps_;
|
|
|
|
public:
|
|
USDTransformWriter(const USDExporterContext &ctx);
|
|
|
|
protected:
|
|
void do_write(HierarchyContext &context) override;
|
|
bool check_is_animated(const HierarchyContext &context) const override;
|
|
bool should_apply_root_xform(const HierarchyContext &context) const;
|
|
void set_xform_ops(float parent_relative_matrix[4][4], const pxr::UsdGeomXformable &xf);
|
|
|
|
/* Subclasses may override this to create prims other than UsdGeomXform. */
|
|
virtual pxr::UsdGeomXformable create_xformable() const;
|
|
};
|
|
|
|
} // namespace blender::io::usd
|