Skip to content

Commit 57fdeed

Browse files
IECoreScene::Primitive : Default Data type for variableData
This helps clarify that variableData is a useful accessor even when you don't want a specific type
1 parent 9895b73 commit 57fdeed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/IECoreScene/Primitive.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ class IECORESCENE_API Primitive : public VisibleRenderable
8686
/// would not be sufficient for manipulating the PrimitiveVariable. To access indexed
8787
/// variables, either call expandedVariableData and take ownership of the copied data,
8888
/// or get them directly from the PrimitiveVariableMap to manipulate them in-place.
89-
template<typename T>
89+
template<typename T = IECore::Data>
9090
T *variableData( const std::string &name, PrimitiveVariable::Interpolation requiredInterpolation=PrimitiveVariable::Invalid );
91-
template<typename T>
91+
template<typename T = IECore::Data>
9292
const T *variableData( const std::string &name, PrimitiveVariable::Interpolation requiredInterpolation=PrimitiveVariable::Invalid ) const;
9393
/// Use expandedVariableData() to find a named variable, expand indices if they exist,
9494
/// and cast to the requested data type. If the variable is not indexed, a direct copy

0 commit comments

Comments
 (0)