From 8ca33564a355e86e70a6b07ec6f946df889b7319 Mon Sep 17 00:00:00 2001 From: zhouhang95 <765229842@qq.com> Date: Fri, 11 Aug 2023 12:04:11 +0800 Subject: [PATCH] WriteAlembic --- projects/Alembic/WriteAlembic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/Alembic/WriteAlembic.cpp b/projects/Alembic/WriteAlembic.cpp index 24e0c00374..662145c593 100644 --- a/projects/Alembic/WriteAlembic.cpp +++ b/projects/Alembic/WriteAlembic.cpp @@ -302,7 +302,7 @@ struct WriteAlembic2 : INode { virtual void apply() override { auto prim = get_input("prim"); bool flipFrontBack = get_input2("flipFrontBack"); - float fps = get_input2("fps"); + float fps = has_input("fps")? get_input2("fps") : 24.0f; int frameid; if (has_input("frameid")) { frameid = get_input2("frameid"); @@ -493,7 +493,7 @@ ZENDEFNODE(WriteAlembic2, { {"writepath", "path", ""}, {"int", "frame_start", "0"}, {"int", "frame_end", "100"}, - {"float", "fps", "24"}, + {"fps"}, {"bool", "flipFrontBack", "1"}, }, {},