mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user