mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Fix printing user properties of Light Prims
This commit is contained in:
BIN
models/texture-cat-plane.usdc
Normal file
BIN
models/texture-cat-plane.usdc
Normal file
Binary file not shown.
@@ -2712,6 +2712,7 @@ std::string to_string(const SphereLight &light, const uint32_t indent, bool clos
|
||||
ss << print_typed_attr(light.specular, "inputs:specular", indent+1);
|
||||
|
||||
ss << print_xformOps(light.xformOps, indent+1);
|
||||
ss << print_props(light.props, indent+1);
|
||||
|
||||
if (closing_brace) {
|
||||
ss << pprint::Indent(indent) << "}\n";
|
||||
@@ -2739,6 +2740,7 @@ std::string to_string(const DistantLight &light, const uint32_t indent, bool clo
|
||||
ss << print_typed_attr(light.angle, "inputs:angle", indent+1);
|
||||
|
||||
ss << print_xformOps(light.xformOps, indent+1);
|
||||
ss << print_props(light.props, indent+1);
|
||||
|
||||
if (closing_brace) {
|
||||
ss << pprint::Indent(indent) << "}\n";
|
||||
@@ -2768,6 +2770,7 @@ std::string to_string(const CylinderLight &light, const uint32_t indent, bool cl
|
||||
ss << print_typed_attr(light.radius, "inputs:radius", indent+1);
|
||||
|
||||
ss << print_xformOps(light.xformOps, indent+1);
|
||||
ss << print_props(light.props, indent+1);
|
||||
|
||||
if (closing_brace) {
|
||||
ss << pprint::Indent(indent) << "}\n";
|
||||
@@ -2796,6 +2799,7 @@ std::string to_string(const DiskLight &light, const uint32_t indent, bool closin
|
||||
ss << print_typed_attr(light.radius, "inputs:radius", indent+1);
|
||||
|
||||
ss << print_xformOps(light.xformOps, indent+1);
|
||||
ss << print_props(light.props, indent+1);
|
||||
|
||||
if (closing_brace) {
|
||||
ss << pprint::Indent(indent) << "}\n";
|
||||
@@ -2821,6 +2825,8 @@ std::string to_string(const DomeLight &light, const uint32_t indent, bool closin
|
||||
|
||||
ss << print_xformOps(light.xformOps, indent+1);
|
||||
|
||||
ss << print_props(light.props, indent+1);
|
||||
|
||||
if (closing_brace) {
|
||||
ss << pprint::Indent(indent) << "}\n";
|
||||
}
|
||||
|
||||
8
tests/usda/assetpath-001.usda
Normal file
8
tests/usda/assetpath-001.usda
Normal file
@@ -0,0 +1,8 @@
|
||||
#usda 1.0
|
||||
def Cone "hello"
|
||||
(
|
||||
)
|
||||
{
|
||||
# looks double quotes are allowd for asset path.
|
||||
asset myval = "bora.jpg"
|
||||
}
|
||||
Reference in New Issue
Block a user