Easing functions as enum
This commit is contained in:
parent
357c2ac7d7
commit
d878c8684d
4 changed files with 278 additions and 9 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include "PySceneObject.h"
|
||||
#include "PyFOV.h"
|
||||
#include "PyTransition.h"
|
||||
#include "PyEasing.h"
|
||||
#include "PySound.h"
|
||||
#include "PyMusic.h"
|
||||
#include "PyKeyboard.h"
|
||||
|
|
@ -429,6 +430,13 @@ PyObject* PyInit_mcrfpy()
|
|||
// Note: default_transition and default_transition_duration are handled via
|
||||
// mcrfpy_module_getattr/setattro using PyTransition::default_transition/default_duration
|
||||
|
||||
// Add Easing enum class (uses Python's IntEnum)
|
||||
PyObject* easing_class = PyEasing::create_enum_class(m);
|
||||
if (!easing_class) {
|
||||
// If enum creation fails, continue without it (non-fatal)
|
||||
PyErr_Clear();
|
||||
}
|
||||
|
||||
// Add automation submodule
|
||||
PyObject* automation_module = McRFPy_Automation::init_automation_module();
|
||||
if (automation_module != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue