Fix build errors: use std::move for set_value() calls

Fixed template deduction issues where set_value() was being called
with lvalue references, causing TypeTraits specialization errors.
Changed all problematic calls to use std::move() to ensure correct
non-reference type deduction.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Syoyo Fujita
2025-09-06 01:49:10 +09:00
parent e29a3f5648
commit 9ac9b8792f
4 changed files with 18 additions and 18 deletions

View File

@@ -158,7 +158,7 @@ static bool MyRead(const tinyusdz::Asset &asset,
memcpy(&val, asset.data(), 4);
tinyusdz::Attribute attr;
attr.set_value(val);
attr.set_value(std::move(val));
attr.set_name("myval");
attr.variability() = tinyusdz::Variability::Uniform;