feat: add more collider types + camera snapping fix
This commit is contained in:
@@ -136,6 +136,7 @@ private:
|
||||
bool m_SaveAsDialog{false};
|
||||
bool m_ItemWasActive{false};
|
||||
bool m_EditPending{false};
|
||||
bool m_CameraHadInput{false};
|
||||
};
|
||||
|
||||
#endif // EDITOR_EDITOR_H
|
||||
|
||||
@@ -11,6 +11,17 @@
|
||||
|
||||
class Scene;
|
||||
|
||||
struct EditGestureState {
|
||||
bool itemWasActive{false};
|
||||
bool itemActive{false};
|
||||
bool mouseReleased{false};
|
||||
bool keyReleased{false};
|
||||
bool keyboardDrivesCamera{false};
|
||||
bool editPending{false};
|
||||
};
|
||||
|
||||
[[nodiscard]] bool EndsEditGesture(const EditGestureState& state);
|
||||
|
||||
class UndoStack final {
|
||||
public:
|
||||
static constexpr std::size_t MaxSteps = 64;
|
||||
|
||||
Reference in New Issue
Block a user