Skip to content

Commit a7b3ed0

Browse files
committed
PointInstancer : Fix signature for setPrototypes()
1 parent 0c82b05 commit a7b3ed0

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
10.7.x.x (relative to 10.7.0.0a12)
22
========
33

4+
Fixes
5+
-----
46

7+
- PointInstancer : Fixed signature for `setPrototypes()` function.
58

69
10.7.0.0a12 (relative to 10.7.0.0a11)
710
===========

include/IECoreScene/PointInstancer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class IECORESCENE_API PointInstancer : public IECoreScene::PointsPrimitive
8383
/// Sets the prototypes to be instanced. Interpretation is left to
8484
/// the consuming rendering system, but in practice these are locations
8585
/// in a SceneInterface or Gaffer scene.
86-
void setPrototypes( IECore::StringVectorDataPtr &prototypes );
86+
void setPrototypes( const IECore::StringVectorDataPtr &prototypes );
8787
/// Returns an invalid view if the variable doesn't exist, or if it
8888
/// exists but has the wrong type or interpolation.
8989
PrimitiveVariable::IndexedView<std::string> getPrototypes() const;

src/IECoreScene/PointInstancer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void PointInstancer::hash( MurmurHash &h ) const
8383
PointsPrimitive::hash( h );
8484
}
8585

86-
void PointInstancer::setPrototypes( IECore::StringVectorDataPtr &prototypes )
86+
void PointInstancer::setPrototypes( const IECore::StringVectorDataPtr &prototypes )
8787
{
8888
if( prototypes )
8989
{

0 commit comments

Comments
 (0)