f30434ac99
.
Yeah you are right, thanks for catching this! I need to rethink what I was trying to do here.
points
. Update report warning to use enum names.
unique_ptr
deleter to handle early return cases
do_write
function as the context object data can and will change frame by frame.
check_is_animated
to perform default animation check on usd export
main
and resolved compilation errors due to changed api for CurvesGeometry
.
unique_ptr
and freeing the memory when usd_writer_curves
is disposed of.
Realised the usdz_export_test.blend
test blend file hasn't been uploaded yet.
Though yeah I just did a check and it looks like the if(usdz_filepath)
is unnecessary so I'll remove it.
Though maybe your way is more explicit and there's less possibility for confusion?
I think the null terminator always evaluates to false.
So if you have an empty string with usdz_filepath[0] = '\0'
then if(usdz_filepath[0])
will evaluate to false.
usdc_temp_dir
is the directory that contains data->unarchived_filepath
, so if there is no data->unarchived_filepath
there shouldn't be anything to delete.
This is basically so that we don't…
As a personal preference I prefer to have functions that actually do logic outside of if()
conditions as I find it can be quite easy to miss, so I've moved it to the line above and stored the…