mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-04 12:47:56 +03:00
Glitter: Renamed Curve Step flag to Global Random
This commit is contained in:
@@ -82,7 +82,7 @@ namespace Glitter {
|
||||
random->SetValue(random_value);
|
||||
bool negate = flags & CURVE_NEGATE
|
||||
&& random->GetInt(GLT_VAL, 0, 0xFFFF) > 0x7FFF;
|
||||
if (flags & CURVE_STEP)
|
||||
if (flags & CURVE_GLOBAL_RANDOM)
|
||||
random->SetValue(random_val + 1);
|
||||
|
||||
float_t start_time;
|
||||
@@ -627,7 +627,7 @@ namespace Glitter {
|
||||
int32_t random_val = random->GetValue();
|
||||
random->SetValue(random_value);
|
||||
bool negate = flags & CURVE_NEGATE && random->GetInt(0, 0xFFFF) > 0x7FFF;
|
||||
if (flags & CURVE_STEP)
|
||||
if (flags & CURVE_GLOBAL_RANDOM)
|
||||
random->SetValue(random_val + 1);
|
||||
|
||||
float_t start_time;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace Glitter {
|
||||
CURVE_RANDOM_RANGE = 0x01,
|
||||
CURVE_KEY_RANDOM_RANGE = 0x02,
|
||||
CURVE_RANDOM_RANGE_NEGATE = 0x04,
|
||||
CURVE_STEP = 0x08,
|
||||
CURVE_GLOBAL_RANDOM = 0x08,
|
||||
CURVE_NEGATE = 0x10,
|
||||
CURVE_RANDOM_RANGE_MULT = 0x20,
|
||||
CURVE_BAKED = 0x40,
|
||||
|
||||
@@ -5482,9 +5482,9 @@ static void glitter_editor_curve_editor_property_window(GlitterEditor* glt_edt)
|
||||
Glitter::CURVE_RANDOM_RANGE_NEGATE))
|
||||
changed = true;
|
||||
|
||||
if (ImGui::CheckboxFlagsEnterKeyPressed("Step Random",
|
||||
if (ImGui::CheckboxFlagsEnterKeyPressed("Global Random",
|
||||
(uint32_t*)&curve->flags,
|
||||
Glitter::CURVE_STEP))
|
||||
Glitter::CURVE_GLOBAL_RANDOM))
|
||||
changed = true;
|
||||
|
||||
if (ImGui::CheckboxFlagsEnterKeyPressed("Curve Negate",
|
||||
@@ -5692,7 +5692,7 @@ static void glitter_editor_curve_editor_selector(GlitterEditor* glt_edt) {
|
||||
if (flags & (Glitter::CURVE_TYPE_UV_SCROLL | Glitter::CURVE_TYPE_UV_SCROLL_ALPHA)
|
||||
&& ImGui::TreeNodeEx("UV Scroll", tree_node_flags)) {
|
||||
ImGui::PushID("UV");
|
||||
glitter_editor_curve_editor_selector_list_box_multi_selectable(glt_edt, flags, "Y",
|
||||
glitter_editor_curve_editor_selector_list_box_multi_selectable(glt_edt, flags, "U",
|
||||
Glitter::CURVE_U_SCROLL, reset);
|
||||
glitter_editor_curve_editor_selector_list_box_multi_selectable(glt_edt, flags, "V",
|
||||
Glitter::CURVE_V_SCROLL, reset);
|
||||
|
||||
Reference in New Issue
Block a user