Showing the changes to interface/src/InterfaceDynamicFactory.cpp (1 of 9 files). Show all
Unified · Split
| @@ -17,6 +17,7 @@ · 16 unmodified lines | |||
| 17 | #include <ObjectActionSpring.h> | 17 | #include <ObjectActionSpring.h> |
| 18 | #include <ObjectActionTravelOriented.h> | 18 | #include <ObjectActionTravelOriented.h> |
| 19 | #include <ObjectConstraintHinge.h> | 19 | #include <ObjectConstraintHinge.h> |
| 20 | #include <ObjectConstraintSlider.h> | ||
| 20 | #include <LogHandler.h> | 21 | #include <LogHandler.h> |
| 21 | 22 | ||
| 22 | #include "InterfaceDynamicFactory.h" | 23 | #include "InterfaceDynamicFactory.h" |
| @@ -38,6 +39,8 @@ EntityDynamicPointer interfaceDynamicFactory(EntityDynamicType type, const QUuid · 15 unmodified lines | |||
| 38 | return std::make_shared<ObjectConstraintHinge>(id, ownerEntity); | 39 | return std::make_shared<ObjectConstraintHinge>(id, ownerEntity); |
| 39 | case DYNAMIC_TYPE_FAR_GRAB: | 40 | case DYNAMIC_TYPE_FAR_GRAB: |
| 40 | return std::make_shared<AvatarActionFarGrab>(id, ownerEntity); | 41 | return std::make_shared<AvatarActionFarGrab>(id, ownerEntity); |
| 42 | case DYNAMIC_TYPE_SLIDER: | ||
| 43 | return std::make_shared<ObjectConstraintSlider>(id, ownerEntity); | ||
| 41 | } | 44 | } |
| 42 | 45 | ||
| 43 | Q_ASSERT_X(false, Q_FUNC_INFO, "Unknown entity dynamic type"); | 46 | Q_ASSERT_X(false, Q_FUNC_INFO, "Unknown entity dynamic type"); |