Skip to content

Commit

Permalink
Update ascent_runtime_rendering_filters.cpp as_int32 to to_int64
Browse files Browse the repository at this point in the history
replace as_int32 with to_int64
  • Loading branch information
nicolemarsaglia committed May 9, 2024
1 parent 109e128 commit 24c91fb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ DefaultRender::execute()

std::string field_name = render_node["auto_camera/field"].as_string();
std::string metric = render_node["auto_camera/metric"].as_string();
int samples = render_node["auto_camera/samples"].as_int32();
int samples = render_node["auto_camera/samples"].to_int64();

if(!collection->has_field(field_name))
{
Expand All @@ -1303,17 +1303,17 @@ DefaultRender::execute()
int width = 1024;
if(render_node.has_path("auto_camera/bins"))
{
int bins = render_node["auto_camera/bins"].as_int32();
int bins = render_node["auto_camera/bins"].to_int64();
auto_cam.SetNumBins(bins);
}
if(render_node.has_path("auto_camera/height"))
{
height = render_node["auto_camera/height"].as_int32();
height = render_node["auto_camera/height"].to_int64();
auto_cam.SetHeight(height);
}
if(render_node.has_path("auto_camera/width"))
{
width = render_node["auto_camera/width"].as_int32();
width = render_node["auto_camera/width"].to_int64();
auto_cam.SetWidth(width);
}

Expand Down

0 comments on commit 24c91fb

Please sign in to comment.