Browse Source

Add the order scene component classes update

Panagiotis Christopoulos Charitos 2 years ago
parent
commit
c98c699bc9
36 changed files with 53 additions and 48 deletions
  1. 1 1
      AnKi/Scene/BodyNode.cpp
  2. 1 1
      AnKi/Scene/CameraNode.cpp
  3. 1 1
      AnKi/Scene/Components/BodyComponent.cpp
  4. 1 1
      AnKi/Scene/Components/DecalComponent.cpp
  5. 1 1
      AnKi/Scene/Components/FogDensityComponent.cpp
  6. 1 1
      AnKi/Scene/Components/FrustumComponent.cpp
  7. 1 1
      AnKi/Scene/Components/GenericGpuComputeJobComponent.cpp
  8. 1 1
      AnKi/Scene/Components/GlobalIlluminationProbeComponent.cpp
  9. 1 1
      AnKi/Scene/Components/GpuParticleEmitterComponent.cpp
  10. 1 1
      AnKi/Scene/Components/JointComponent.cpp
  11. 1 1
      AnKi/Scene/Components/LensFlareComponent.cpp
  12. 1 1
      AnKi/Scene/Components/LightComponent.cpp
  13. 1 1
      AnKi/Scene/Components/ModelComponent.cpp
  14. 1 1
      AnKi/Scene/Components/MoveComponent.cpp
  15. 1 1
      AnKi/Scene/Components/ParticleEmitterComponent.cpp
  16. 1 1
      AnKi/Scene/Components/PlayerControllerComponent.cpp
  17. 1 1
      AnKi/Scene/Components/ReflectionProbeComponent.cpp
  18. 1 1
      AnKi/Scene/Components/RenderComponent.cpp
  19. 4 1
      AnKi/Scene/Components/SceneComponent.cpp
  20. 5 3
      AnKi/Scene/Components/SceneComponent.h
  21. 1 1
      AnKi/Scene/Components/ScriptComponent.cpp
  22. 1 1
      AnKi/Scene/Components/SkinComponent.cpp
  23. 1 1
      AnKi/Scene/Components/SkyboxComponent.cpp
  24. 1 1
      AnKi/Scene/Components/SpatialComponent.cpp
  25. 1 1
      AnKi/Scene/Components/TriggerComponent.cpp
  26. 1 1
      AnKi/Scene/Components/UiComponent.cpp
  27. 2 2
      AnKi/Scene/DecalNode.cpp
  28. 2 2
      AnKi/Scene/FogDensityNode.cpp
  29. 2 2
      AnKi/Scene/GlobalIlluminationProbeNode.cpp
  30. 2 2
      AnKi/Scene/GpuParticleEmitterNode.cpp
  31. 4 4
      AnKi/Scene/LightNode.cpp
  32. 1 1
      AnKi/Scene/ModelNode.cpp
  33. 2 2
      AnKi/Scene/ParticleEmitterNode.cpp
  34. 2 2
      AnKi/Scene/PlayerNode.cpp
  35. 2 2
      AnKi/Scene/ReflectionProbeNode.cpp
  36. 1 1
      AnKi/Scene/TriggerNode.cpp

+ 1 - 1
AnKi/Scene/BodyNode.cpp

@@ -40,7 +40,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(BodyNode::FeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(BodyNode::FeedbackComponent, -1.0f)
 
 
 BodyNode::BodyNode(SceneGraph* scene, CString name)
 BodyNode::BodyNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)

+ 1 - 1
AnKi/Scene/CameraNode.cpp

@@ -38,7 +38,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(CameraNode::MoveFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(CameraNode::MoveFeedbackComponent, -1.0f)
 
 
 CameraNode::CameraNode(SceneGraph* scene, CString name)
 CameraNode::CameraNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)

+ 1 - 1
AnKi/Scene/Components/BodyComponent.cpp

@@ -12,7 +12,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(BodyComponent)
+ANKI_SCENE_COMPONENT_STATICS(BodyComponent, 10.0f)
 
 
 BodyComponent::BodyComponent(SceneNode* node)
 BodyComponent::BodyComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/DecalComponent.cpp

@@ -10,7 +10,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(DecalComponent)
+ANKI_SCENE_COMPONENT_STATICS(DecalComponent, 100.0f)
 
 
 DecalComponent::DecalComponent(SceneNode* node)
 DecalComponent::DecalComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/FogDensityComponent.cpp

@@ -7,6 +7,6 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(FogDensityComponent)
+ANKI_SCENE_COMPONENT_STATICS(FogDensityComponent, 100.0f)
 
 
 } // end namespace anki
 } // end namespace anki

+ 1 - 1
AnKi/Scene/Components/FrustumComponent.cpp

@@ -9,7 +9,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(FrustumComponent)
+ANKI_SCENE_COMPONENT_STATICS(FrustumComponent, -1.0f)
 
 
 FrustumComponent::FrustumComponent(SceneNode* node)
 FrustumComponent::FrustumComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/GenericGpuComputeJobComponent.cpp

@@ -7,6 +7,6 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(GenericGpuComputeJobComponent)
+ANKI_SCENE_COMPONENT_STATICS(GenericGpuComputeJobComponent, -1.0f)
 
 
 } // end namespace anki
 } // end namespace anki

+ 1 - 1
AnKi/Scene/Components/GlobalIlluminationProbeComponent.cpp

@@ -11,7 +11,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(GlobalIlluminationProbeComponent)
+ANKI_SCENE_COMPONENT_STATICS(GlobalIlluminationProbeComponent, 100.0f)
 
 
 GlobalIlluminationProbeComponent::GlobalIlluminationProbeComponent(SceneNode* node)
 GlobalIlluminationProbeComponent::GlobalIlluminationProbeComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/GpuParticleEmitterComponent.cpp

@@ -12,7 +12,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(GpuParticleEmitterComponent)
+ANKI_SCENE_COMPONENT_STATICS(GpuParticleEmitterComponent, 40.0f)
 
 
 GpuParticleEmitterComponent::GpuParticleEmitterComponent(SceneNode* node)
 GpuParticleEmitterComponent::GpuParticleEmitterComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/JointComponent.cpp

@@ -10,7 +10,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(JointComponent)
+ANKI_SCENE_COMPONENT_STATICS(JointComponent, 20.0f)
 
 
 class JointComponent::JointNode : public IntrusiveListEnabled<JointNode>
 class JointComponent::JointNode : public IntrusiveListEnabled<JointNode>
 {
 {

+ 1 - 1
AnKi/Scene/Components/LensFlareComponent.cpp

@@ -10,7 +10,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(LensFlareComponent)
+ANKI_SCENE_COMPONENT_STATICS(LensFlareComponent, 100.0f)
 
 
 LensFlareComponent::LensFlareComponent(SceneNode* node)
 LensFlareComponent::LensFlareComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/LightComponent.cpp

@@ -15,7 +15,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(LightComponent)
+ANKI_SCENE_COMPONENT_STATICS(LightComponent, 100.0f)
 
 
 LightComponent::LightComponent(SceneNode* node)
 LightComponent::LightComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/ModelComponent.cpp

@@ -11,7 +11,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(ModelComponent)
+ANKI_SCENE_COMPONENT_STATICS(ModelComponent, 40.0f)
 
 
 ModelComponent::ModelComponent(SceneNode* node)
 ModelComponent::ModelComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/MoveComponent.cpp

@@ -9,7 +9,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(MoveComponent)
+ANKI_SCENE_COMPONENT_STATICS(MoveComponent, 30.0f)
 
 
 MoveComponent::MoveComponent(SceneNode* node)
 MoveComponent::MoveComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/ParticleEmitterComponent.cpp

@@ -17,7 +17,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(ParticleEmitterComponent)
+ANKI_SCENE_COMPONENT_STATICS(ParticleEmitterComponent, 40.0f)
 
 
 static Vec3 getRandom(const Vec3& min, const Vec3& max)
 static Vec3 getRandom(const Vec3& min, const Vec3& max)
 {
 {

+ 1 - 1
AnKi/Scene/Components/PlayerControllerComponent.cpp

@@ -10,7 +10,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(PlayerControllerComponent)
+ANKI_SCENE_COMPONENT_STATICS(PlayerControllerComponent, 10.0f)
 
 
 PlayerControllerComponent::PlayerControllerComponent(SceneNode* node)
 PlayerControllerComponent::PlayerControllerComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/ReflectionProbeComponent.cpp

@@ -11,7 +11,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(ReflectionProbeComponent)
+ANKI_SCENE_COMPONENT_STATICS(ReflectionProbeComponent, 100.0f)
 
 
 ReflectionProbeComponent::ReflectionProbeComponent(SceneNode* node)
 ReflectionProbeComponent::ReflectionProbeComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/RenderComponent.cpp

@@ -11,7 +11,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(RenderComponent)
+ANKI_SCENE_COMPONENT_STATICS(RenderComponent, 100.0f)
 
 
 RenderComponent::RenderComponent(SceneNode* node)
 RenderComponent::RenderComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 4 - 1
AnKi/Scene/Components/SceneComponent.cpp

@@ -12,7 +12,8 @@ static SceneComponentRtti* g_rttis[kMaxSceneComponentClasses] = {};
 SceneComponentCallbacks g_sceneComponentCallbacks;
 SceneComponentCallbacks g_sceneComponentCallbacks;
 static U32 g_sceneComponentClassCount = 0;
 static U32 g_sceneComponentClassCount = 0;
 
 
-SceneComponentRtti::SceneComponentRtti(const char* name, U32 size, U32 alignment, SceneComponentVtable vtable)
+SceneComponentRtti::SceneComponentRtti(const char* name, F32 updateWeight, U32 size, U32 alignment,
+									   SceneComponentVtable vtable)
 {
 {
 	if(g_sceneComponentClassCount >= kMaxSceneComponentClasses)
 	if(g_sceneComponentClassCount >= kMaxSceneComponentClasses)
 	{
 	{
@@ -21,6 +22,8 @@ SceneComponentRtti::SceneComponentRtti(const char* name, U32 size, U32 alignment
 		exit(-1);
 		exit(-1);
 	}
 	}
 
 
+	m_updateWeight = updateWeight;
+
 	m_className = name;
 	m_className = name;
 	ANKI_ASSERT(size < getMaxNumericLimit<decltype(m_classSize)>());
 	ANKI_ASSERT(size < getMaxNumericLimit<decltype(m_classSize)>());
 	m_classSize = decltype(m_classSize)(size);
 	m_classSize = decltype(m_classSize)(size);

+ 5 - 3
AnKi/Scene/Components/SceneComponent.h

@@ -45,11 +45,12 @@ class SceneComponentRtti
 {
 {
 public:
 public:
 	const char* m_className;
 	const char* m_className;
+	F32 m_updateWeight; ///< It give the order it will get updated compared to other components.
 	U16 m_classSize;
 	U16 m_classSize;
 	U8 m_classAlignment;
 	U8 m_classAlignment;
 	U8 m_classId;
 	U8 m_classId;
 
 
-	SceneComponentRtti(const char* name, U32 size, U32 alignment, SceneComponentVtable vtable);
+	SceneComponentRtti(const char* name, F32 updateWeight, U32 size, U32 alignment, SceneComponentVtable vtable);
 };
 };
 
 
 /// Define a scene component.
 /// Define a scene component.
@@ -85,8 +86,9 @@ public: \
 private:
 private:
 
 
 /// Define the statics of a scene component.
 /// Define the statics of a scene component.
-#define ANKI_SCENE_COMPONENT_STATICS(className) \
-	SceneComponentRtti className::_m_rtti(ANKI_STRINGIZE(className), sizeof(className), alignof(className), \
+#define ANKI_SCENE_COMPONENT_STATICS(className, updateWeight) \
+	SceneComponentRtti className::_m_rtti(ANKI_STRINGIZE(className), updateWeight, sizeof(className), \
+										  alignof(className), \
 										  {className::_construct, className::_destruct, className::_onDestroy, \
 										  {className::_construct, className::_destruct, className::_onDestroy, \
 										   className::_update, className::_onOtherComponentRemovedOrAdded});
 										   className::_update, className::_onOtherComponentRemovedOrAdded});
 
 

+ 1 - 1
AnKi/Scene/Components/ScriptComponent.cpp

@@ -12,7 +12,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(ScriptComponent)
+ANKI_SCENE_COMPONENT_STATICS(ScriptComponent, 0.0f)
 
 
 ScriptComponent::ScriptComponent(SceneNode* node)
 ScriptComponent::ScriptComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/SkinComponent.cpp

@@ -13,7 +13,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(SkinComponent)
+ANKI_SCENE_COMPONENT_STATICS(SkinComponent, 45.0f)
 
 
 SkinComponent::SkinComponent(SceneNode* node)
 SkinComponent::SkinComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/SkyboxComponent.cpp

@@ -12,7 +12,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(SkyboxComponent)
+ANKI_SCENE_COMPONENT_STATICS(SkyboxComponent, 100.0f)
 
 
 SkyboxComponent::SkyboxComponent(SceneNode* node)
 SkyboxComponent::SkyboxComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/SpatialComponent.cpp

@@ -9,7 +9,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(SpatialComponent)
+ANKI_SCENE_COMPONENT_STATICS(SpatialComponent, 50.0f)
 
 
 SpatialComponent::SpatialComponent(SceneNode* node)
 SpatialComponent::SpatialComponent(SceneNode* node)
 	: SceneComponent(node, getStaticClassId())
 	: SceneComponent(node, getStaticClassId())

+ 1 - 1
AnKi/Scene/Components/TriggerComponent.cpp

@@ -11,7 +11,7 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(TriggerComponent)
+ANKI_SCENE_COMPONENT_STATICS(TriggerComponent, 40.0f)
 
 
 /// The callbacks execute before the TriggerComponent::update
 /// The callbacks execute before the TriggerComponent::update
 class TriggerComponent::MyPhysicsTriggerProcessContactCallback final : public PhysicsTriggerProcessContactCallback
 class TriggerComponent::MyPhysicsTriggerProcessContactCallback final : public PhysicsTriggerProcessContactCallback

+ 1 - 1
AnKi/Scene/Components/UiComponent.cpp

@@ -7,6 +7,6 @@
 
 
 namespace anki {
 namespace anki {
 
 
-ANKI_SCENE_COMPONENT_STATICS(UiComponent)
+ANKI_SCENE_COMPONENT_STATICS(UiComponent, 100.0f)
 
 
 } // end namespace anki
 } // end namespace anki

+ 2 - 2
AnKi/Scene/DecalNode.cpp

@@ -35,7 +35,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(DecalNode::MoveFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(DecalNode::MoveFeedbackComponent, -1.0f)
 
 
 /// Decal feedback component.
 /// Decal feedback component.
 class DecalNode::ShapeFeedbackComponent : public SceneComponent
 class DecalNode::ShapeFeedbackComponent : public SceneComponent
@@ -63,7 +63,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(DecalNode::ShapeFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(DecalNode::ShapeFeedbackComponent, -1.0f)
 
 
 DecalNode::DecalNode(SceneGraph* scene, CString name)
 DecalNode::DecalNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)

+ 2 - 2
AnKi/Scene/FogDensityNode.cpp

@@ -34,7 +34,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(FogDensityNode::MoveFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(FogDensityNode::MoveFeedbackComponent, -1.0f)
 
 
 class FogDensityNode::DensityShapeFeedbackComponent : public SceneComponent
 class FogDensityNode::DensityShapeFeedbackComponent : public SceneComponent
 {
 {
@@ -60,7 +60,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(FogDensityNode::DensityShapeFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(FogDensityNode::DensityShapeFeedbackComponent, -1.0f)
 
 
 FogDensityNode::FogDensityNode(SceneGraph* scene, CString name)
 FogDensityNode::FogDensityNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)

+ 2 - 2
AnKi/Scene/GlobalIlluminationProbeNode.cpp

@@ -39,7 +39,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(GlobalIlluminationProbeNode::MoveFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(GlobalIlluminationProbeNode::MoveFeedbackComponent, -1.0f)
 
 
 /// Feedback component
 /// Feedback component
 class GlobalIlluminationProbeNode::ShapeFeedbackComponent : public SceneComponent
 class GlobalIlluminationProbeNode::ShapeFeedbackComponent : public SceneComponent
@@ -71,7 +71,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(GlobalIlluminationProbeNode::ShapeFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(GlobalIlluminationProbeNode::ShapeFeedbackComponent, -1.0f)
 
 
 GlobalIlluminationProbeNode::GlobalIlluminationProbeNode(SceneGraph* scene, CString name)
 GlobalIlluminationProbeNode::GlobalIlluminationProbeNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)

+ 2 - 2
AnKi/Scene/GpuParticleEmitterNode.cpp

@@ -38,7 +38,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(GpuParticleEmitterNode::MoveFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(GpuParticleEmitterNode::MoveFeedbackComponent, -1.0f)
 
 
 /// Feedback component
 /// Feedback component
 class GpuParticleEmitterNode::ShapeFeedbackComponent : public SceneComponent
 class GpuParticleEmitterNode::ShapeFeedbackComponent : public SceneComponent
@@ -66,7 +66,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(GpuParticleEmitterNode::ShapeFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(GpuParticleEmitterNode::ShapeFeedbackComponent, -1.0f)
 
 
 GpuParticleEmitterNode::GpuParticleEmitterNode(SceneGraph* scene, CString name)
 GpuParticleEmitterNode::GpuParticleEmitterNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)

+ 4 - 4
AnKi/Scene/LightNode.cpp

@@ -39,7 +39,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(LightNode::OnMovedFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(LightNode::OnMovedFeedbackComponent, -1.0f)
 
 
 /// Feedback component.
 /// Feedback component.
 class LightNode::OnLightShapeUpdatedFeedbackComponent : public SceneComponent
 class LightNode::OnLightShapeUpdatedFeedbackComponent : public SceneComponent
@@ -67,7 +67,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(LightNode::OnLightShapeUpdatedFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(LightNode::OnLightShapeUpdatedFeedbackComponent, -1.0f)
 
 
 LightNode::LightNode(SceneGraph* scene, CString name)
 LightNode::LightNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)
@@ -224,7 +224,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(SpotLightNode::OnFrustumUpdatedFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(SpotLightNode::OnFrustumUpdatedFeedbackComponent, -1.0f)
 
 
 SpotLightNode::SpotLightNode(SceneGraph* scene, CString name)
 SpotLightNode::SpotLightNode(SceneGraph* scene, CString name)
 	: LightNode(scene, name)
 	: LightNode(scene, name)
@@ -305,7 +305,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(DirectionalLightNode::FeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(DirectionalLightNode::FeedbackComponent, -1.0f)
 
 
 DirectionalLightNode::DirectionalLightNode(SceneGraph* scene, CString name)
 DirectionalLightNode::DirectionalLightNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)

+ 1 - 1
AnKi/Scene/ModelNode.cpp

@@ -37,7 +37,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(ModelNode::FeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(ModelNode::FeedbackComponent, -1.0f)
 
 
 class ModelNode::RenderProxy
 class ModelNode::RenderProxy
 {
 {

+ 2 - 2
AnKi/Scene/ParticleEmitterNode.cpp

@@ -36,7 +36,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(ParticleEmitterNode::MoveFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(ParticleEmitterNode::MoveFeedbackComponent, -1.0f)
 
 
 /// Feedback component
 /// Feedback component
 class ParticleEmitterNode::ShapeFeedbackComponent : public SceneComponent
 class ParticleEmitterNode::ShapeFeedbackComponent : public SceneComponent
@@ -58,7 +58,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(ParticleEmitterNode::ShapeFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(ParticleEmitterNode::ShapeFeedbackComponent, -1.0f)
 
 
 ParticleEmitterNode::ParticleEmitterNode(SceneGraph* scene, CString name)
 ParticleEmitterNode::ParticleEmitterNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)

+ 2 - 2
AnKi/Scene/PlayerNode.cpp

@@ -61,7 +61,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(PlayerNode::FeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(PlayerNode::FeedbackComponent, -1.0f)
 
 
 /// Feedback component.
 /// Feedback component.
 class PlayerNode::FeedbackComponent2 final : public SceneComponent
 class PlayerNode::FeedbackComponent2 final : public SceneComponent
@@ -116,7 +116,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(PlayerNode::FeedbackComponent2)
+ANKI_SCENE_COMPONENT_STATICS(PlayerNode::FeedbackComponent2, -1.0f)
 
 
 PlayerNode::PlayerNode(SceneGraph* scene, CString name)
 PlayerNode::PlayerNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)

+ 2 - 2
AnKi/Scene/ReflectionProbeNode.cpp

@@ -40,7 +40,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(ReflectionProbeNode::MoveFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(ReflectionProbeNode::MoveFeedbackComponent, -1.0f)
 
 
 /// Feedback component
 /// Feedback component
 class ReflectionProbeNode::ShapeFeedbackComponent : public SceneComponent
 class ReflectionProbeNode::ShapeFeedbackComponent : public SceneComponent
@@ -68,7 +68,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(ReflectionProbeNode::ShapeFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(ReflectionProbeNode::ShapeFeedbackComponent, -1.0f)
 
 
 ReflectionProbeNode::ReflectionProbeNode(SceneGraph* scene, CString name)
 ReflectionProbeNode::ReflectionProbeNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)

+ 1 - 1
AnKi/Scene/TriggerNode.cpp

@@ -37,7 +37,7 @@ public:
 	}
 	}
 };
 };
 
 
-ANKI_SCENE_COMPONENT_STATICS(TriggerNode::MoveFeedbackComponent)
+ANKI_SCENE_COMPONENT_STATICS(TriggerNode::MoveFeedbackComponent, -1.0f)
 
 
 TriggerNode::TriggerNode(SceneGraph* scene, CString name)
 TriggerNode::TriggerNode(SceneGraph* scene, CString name)
 	: SceneNode(scene, name)
 	: SceneNode(scene, name)