Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ Build

- Added compatibility with USD 25.11 and 26.03.

API
---

- Primitive : Added default type to templated function variableData.

10.7.0.0a6 (relative to 10.7.0.0a5)
==========

Expand Down
4 changes: 2 additions & 2 deletions include/IECoreScene/Primitive.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ class IECORESCENE_API Primitive : public VisibleRenderable
/// would not be sufficient for manipulating the PrimitiveVariable. To access indexed
/// variables, either call expandedVariableData and take ownership of the copied data,
/// or get them directly from the PrimitiveVariableMap to manipulate them in-place.
template<typename T>
template<typename T = IECore::Data>
T *variableData( const std::string &name, PrimitiveVariable::Interpolation requiredInterpolation=PrimitiveVariable::Invalid );
template<typename T>
template<typename T = IECore::Data>
const T *variableData( const std::string &name, PrimitiveVariable::Interpolation requiredInterpolation=PrimitiveVariable::Invalid ) const;
/// Use expandedVariableData() to find a named variable, expand indices if they exist,
/// and cast to the requested data type. If the variable is not indexed, a direct copy
Expand Down
Loading