Skip to content

Commit

Permalink
Instancer : Optimize encapsulated case
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldresser-ie committed Oct 23, 2023
1 parent 3a263b1 commit ec4659d
Show file tree
Hide file tree
Showing 5 changed files with 1,003 additions and 184 deletions.
14 changes: 14 additions & 0 deletions include/GafferScene/Instancer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@

#include "GafferScene/Export.h"
#include "GafferScene/BranchCreator.h"
#include "GafferScene/Capsule.h"

namespace GafferSceneModule
{

// Forward declaration to enable friend declaration.
void bindHierarchy();

} // namespace GafferSceneModule

namespace GafferScene
{
Expand Down Expand Up @@ -211,6 +220,7 @@ class GAFFERSCENE_API Instancer : public BranchCreator
private :

IE_CORE_FORWARDDECLARE( EngineData );
IE_CORE_FORWARDDECLARE( InstancerCapsule );

Gaffer::ObjectPlug *enginePlug();
const Gaffer::ObjectPlug *enginePlug() const;
Expand Down Expand Up @@ -247,6 +257,10 @@ class GAFFERSCENE_API Instancer : public BranchCreator

static size_t g_firstPlugIndex;

// For bindings
friend void GafferSceneModule::bindHierarchy();
static const std::type_info &instancerCapsuleTypeInfo();

};

IE_CORE_DECLAREPTR( Instancer )
Expand Down
1 change: 1 addition & 0 deletions include/GafferScene/TypeIds.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ enum TypeId
FramingConstraintTypeId = 110633,
MeshNormalsTypeId = 110634,
ImageScatterTypeId = 110635,
InstancerCapsuleTypeId = 110636,

PreviewPlaceholderTypeId = 110647,
PreviewGeometryTypeId = 110648,
Expand Down
Loading

0 comments on commit ec4659d

Please sign in to comment.